EADST

Save Hugging Face Model with One Bin

max_shard_size (int or str, optional, defaults to "10GB") — Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size lower than this size. If expressed as a string, needs to be digits followed by a unit (like "5MB").

Based on the introduction, one bin model can be saved by changing the "max_shard_size".

LlamaForCausalLM.save_pretrained(base_model, output_dir, max_shard_size="100GB") # save one bin if the model is less than 100GB

Reference

PreTrainedModel

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

本站现有博文338篇,共被浏览989923次

本站已经建立2702天!

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