pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install modelscope accelerate transformers peft datasets addict sentencepiece
python marge.py
git clone git@github.com:ggerganov/llama.cpp.gitcd llama.cpp
python convert_hf_to_gguf.py /Users/lorne/developer/github/python/qwen2.5-stf/qwen_sft_merged --outfile qwen2.5-0.5B-q8_0.gguf --outtype q8_0
cat ./tv-model-qwen2.5-0.5b.modelfile
ollama create tv-model -f tv-model-qwen2.5-0.5b.modelfile
ollama list
curl --location 'http://localhost:11434/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"content": [
{
"type": "text",
"text": "播放一下周杰伦的音乐"
}
],
"role": "user"
}
],
"model": "tv-model:latest",
"stream": false,
"temperature": 0.1
}'
export HF_ENDPOINT=https://hf-mirror.com
export CUDA_VISIBLE_DEVICES=0,1,2
19 commits
Python
99.8%
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip install modelscope accelerate transformers peft datasets addict sentencepiece
python marge.py
git clone git@github.com:ggerganov/llama.cpp.gitcd llama.cpp
python convert_hf_to_gguf.py /Users/lorne/developer/github/python/qwen2.5-stf/qwen_sft_merged --outfile qwen2.5-0.5B-q8_0.gguf --outtype q8_0
cat ./tv-model-qwen2.5-0.5b.modelfile
ollama create tv-model -f tv-model-qwen2.5-0.5b.modelfile
ollama list
curl --location 'http://localhost:11434/v1/chat/completions' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"content": [
{
"type": "text",
"text": "播放一下周杰伦的音乐"
}
],
"role": "user"
}
],
"model": "tv-model:latest",
"stream": false,
"temperature": 0.1
}'
export HF_ENDPOINT=https://hf-mirror.com
export CUDA_VISIBLE_DEVICES=0,1,2
19 commits
Python
99.8%