EADST

Check "bert-base-uncased" Model Structure

Check "bert-base-uncased" Model Structure

import torch
from transformers import BertModel
from torchinfo import summary

model = BertModel.from_pretrained("bert-base-uncased")
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
model.to(device)

input_size = (1, 512)  # input size
input_tensor = torch.randint(0, 10000, input_size, dtype=torch.long, device=device)

summary(model, input_data=input_tensor)
相关标签
About Me
XD
Goals determine what you are going to be.
Category
标签云
Base64 Git Zip 公式 XML VPN Ubuntu NameSilo 继承 递归学习法 API Hotel git-lfs mmap Anaconda TensorFlow Review LeetCode Augmentation 关于博主 CC Transformers Qwen 云服务器 Card diffusers Plotly Bipartite Web FP8 WebCrawler DeepSeek C++ IndexTTS2 强化学习 GoogLeNet Logo 音频 Cloudreve LaTeX transformers Statistics hf PDF Paddle Pickle LLM 版权 PDB CV CUDA RGB AI News Markdown TTS Magnet 净利润 CAM COCO Qwen2.5 Translation Jetson LLAMA Google Random 多线程 Knowledge uwsgi Color git Proxy 论文 Baidu SQL Diagram Sklearn 域名 BTC Django WAN tqdm 阿里云 Clash Algorithm SVR Animate llama.cpp Permission FP16 Bin uWSGI Rebuttal Mixtral logger Bert Data Linux Python EXCEL ONNX HaggingFace 腾讯云 CEIR Paper icon OCR QWEN Firewall Bitcoin ChatGPT Jupyter CTC VSCode HuggingFace Ptyhon 证件照 Conda tar XGBoost UI RAR Github InvalidArgumentError Shortcut Password GGML Input Vmess Math CLAP SQLite DeepStream GPT4 MD5 Domain Breakpoint Vim 第一性原理 Pandas 论文速读 NLP 签证 Tiktoken Interview FP32 Website GPTQ 搞笑 Food 飞书 Land Qwen2 ResNet-50 PIP 图标 Tensor Distillation GIT Claude Quantize PyTorch Miniforge scipy NLTK JSON Michelin Search Video ModelScope Hilton v0.dev Hungarian Datetime TSV Excel OpenAI Llama Crawler Docker Gemma 顶会 算法题 SAM Pillow 多进程 Dataset LoRA Streamlit printf Heatmap FlashAttention Use Quantization Numpy UNIX BF16 Image2Text Agent Plate BeautifulSoup Disk TensorRT Tracking 图形思考法 v2ray Attention PyCharm Safetensors VGG-16 SPIE Freesound 报税 Pytorch Nginx torchinfo 财报 Template CSV YOLO FP64 FastAPI Windows OpenCV
站点统计

本站现有博文327篇,共被浏览826029

本站已经建立2532天!

热门文章
文章归档
回到顶部