Instructions to use fireballoon/baichuan-vicuna-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use fireballoon/baichuan-vicuna-7b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="fireballoon/baichuan-vicuna-7b")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("fireballoon/baichuan-vicuna-7b") model = AutoModelForCausalLM.from_pretrained("fireballoon/baichuan-vicuna-7b") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use fireballoon/baichuan-vicuna-7b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "fireballoon/baichuan-vicuna-7b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fireballoon/baichuan-vicuna-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/fireballoon/baichuan-vicuna-7b
- SGLang
How to use fireballoon/baichuan-vicuna-7b with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "fireballoon/baichuan-vicuna-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fireballoon/baichuan-vicuna-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "fireballoon/baichuan-vicuna-7b" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "fireballoon/baichuan-vicuna-7b", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use fireballoon/baichuan-vicuna-7b with Docker Model Runner:
docker model run hf.co/fireballoon/baichuan-vicuna-7b
Adding `safetensors` variant of this model
#9 opened about 1 year ago
by
SFconvertbot
可以提供一下leetcode的能跑通的数据或者处理code 嘛?谢谢
2
#8 opened almost 3 years ago
by
Aibet
请问有跑分的代码吗
3
#7 opened almost 3 years ago
by
endNone
关于模型中文语言表现
1
#6 opened almost 3 years ago
by
reedhs
可以提供一下训练代码吗?
11
#5 opened almost 3 years ago
by
puppet1988
A question of setstorage in Baichuan-7B and Baichuan-vicuna-7B
1
#4 opened almost 3 years ago
by
starvin-lw
拿fastchat(llama-vicuna)的测试集给baichuan-vicuna-13b跑了个分
1
#2 opened almost 3 years ago
by
0xDing