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

本站现有博文321篇,共被浏览764597

本站已经建立2442天!

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