> This page is for NeMo-RL, version 0.2.1.
> 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

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://es.nvidia-localization.ferndocs.com/es/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://es.nvidia-localization.ferndocs.com/es/_mcp/server.

# DeepSeek-V3

## Crear punto de control de Hugging Face en BF16

(adaptado de [https://docs.nvidia.com/nemo-framework/user-guide/latest/llms/deepseek_v3.html](https://docs.nvidia.com/nemo-framework/user-guide/latest/llms/deepseek_v3.html))

```bash
# clonar pesos de DeepSeek V3 desde HF  (Esto puede tomar horas)
git lfs install
git clone https://huggingface.co/deepseek-ai/DeepSeek-V3 DeepSeek-V3-FP8

# clonar código de DeepSeek-V3
git 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/inference
sed -i '88{s/new_safetensor_file/new_safetensor_file, metadata={"format": "pt"}/}' fp8_cast_bf16.py

# convertir pesos
python fp8_cast_bf16.py --input-fp8-hf-path ../../DeepSeek-V3-FP8 --output-bf16-hf-path ../../DeepSeek-V3-BF16

# copiar otros archivos
cd ../..
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
```