EADST

Pytorch: Freeze layers to Finetune the Model

Pytorch: Freeze layers to Finetune the Model.

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

本站现有博文340篇,共被浏览1018331次

本站已经建立2718天!

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