Skip to content

Conversation

@Yang-Yi20
Copy link

convert

python3 scripts/convert_baichuan_from_huggingface_to_tencentpretrain.py --input_model_path $Baichuan2_7B_FOLDER --output_model_path models/baichuan2_7b.bin

test

python3 scripts/generate_lm.py --load_model_path models/baichuan2_7b.bin --spm_model_path $Baichuan2_7B_FOLDER/tokenizer.model --test_path beginning.txt --prediction_path generated_sentence.txt --config_path models/baichuan/7b_config.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants