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

本站现有博文332篇,共被浏览875171

本站已经建立2583天!

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