Examples of running the convert_checkpoint.py script
This process will help you create the arguments that go with the checkpoint.py script
Examples of running the convert_checkpoint.py script
checkpoint.py script1. Convert a checkpoint using a single GPU and FP16:
python convert_checkpoint.py --model_dir ./path/to/model/directory \
--output_dir ./tllm_checkpoint_1gpu_fp16 \
--dtype float16
2. Convert a checkpoint using a single GPU and BF16:
python convert_checkpoint.py --model_dir ./path/to/model/directory \
--output_dir ./tllm_checkpoint_1gpu_bf16 \
--dtype bfloat16
3. Convert a checkpoint with specific model hyperparameters:
python convert_checkpoint.py --model_dir ./path/to/model/directory \
--output_dir ./path/to/output/directory \
--dtype float16 \
--n_layer 32 \
--n_head 32 \
--n_embd 4096README: Converting Checkpoints with TensorRT-LLM
You will need to manually move the files into the right directory for now
Prerequisites
Configuration
Running the Script
How It Works
Last updated
Was this helpful?


