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

本站现有博文309篇,共被浏览732709

本站已经建立2370天!

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