This page is for NeMo-RL, version último (default).
For other versions, use one of these documentation indexes:
- último (default): https://es.nvidia-localization.ferndocs.com/es/nemo/rl/latest/llms.txt
- 0.3.0: https://es.nvidia-localization.ferndocs.com/es/nemo/rl/0-3-0/llms.txt
- 0.2.1: https://es.nvidia-localization.ferndocs.com/es/nemo/rl/0-2-1/llms.txt
Crear punto de control de Hugging Face en BF16
(adaptado de https://docs.nvidia.com/nemo-framework/user-guide/latest/llms/deepseek_v3.html)
# clonar pesos de DeepSeek V3 desde HF (Esto puede tomar horas)git lfs installgit clone https://huggingface.co/deepseek-ai/DeepSeek-V3 DeepSeek-V3-FP8# clonar código de DeepSeek-V3git clone https://github.com/deepseek-ai/DeepSeek-V3.git# transformers (desde v4.23.0) (comprueba el formato de tensor en los metadatos)[https://github.com/huggingface/transformers/blob/9ae22fe3c1b81f99a764d382054b6ebe2b025bd4/src/transformers/modeling_utils.py#L388]cd DeepSeek-V3/inferencesed -i '88{s/new_safetensor_file/new_safetensor_file, metadata={"format": "pt"}/}' fp8_cast_bf16.py# convertir pesospython fp8_cast_bf16.py --input-fp8-hf-path ../../DeepSeek-V3-FP8 --output-bf16-hf-path ../../DeepSeek-V3-BF16# copiar otros archivoscd ../..cp DeepSeek-V3-FP8/{tokenizer_config.json,tokenizer.json,modeling_deepseek.py,configuration_deepseek.py} DeepSeek-V3-BF16/# copiar config.json, eliminar `quantization_config`, y establecer num_nextn_predict_layers en 0 (actualmente no compatible con mtp):jq 'del(.quantization_config) | .num_nextn_predict_layers=0' DeepSeek-V3-FP8/config.json > DeepSeek-V3-BF16/config.json