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

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

本站已经建立2538天!

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