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

本站现有博文337篇,共被浏览949782

本站已经建立2661天!

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