Instructions to use infly/INF-34B-Chat with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use infly/INF-34B-Chat with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="infly/INF-34B-Chat", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("infly/INF-34B-Chat", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use infly/INF-34B-Chat with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "infly/INF-34B-Chat" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "infly/INF-34B-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/infly/INF-34B-Chat
- SGLang
How to use infly/INF-34B-Chat 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 "infly/INF-34B-Chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "infly/INF-34B-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "infly/INF-34B-Chat" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "infly/INF-34B-Chat", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use infly/INF-34B-Chat with Docker Model Runner:
docker model run hf.co/infly/INF-34B-Chat
update README.md
Browse files
README.md
CHANGED
|
@@ -71,7 +71,7 @@ We evaluate our model on several academic benchmarks then compare with other sim
|
|
| 71 |
| HellaSwag(0-shot) | 82.03 | 81.57 | 83.32 |
|
| 72 |
|
| 73 |
|
| 74 |
-
**Note:** To facilitate reproduction, the results of common benchmarks are generated by [OpenCompass](https://github.com/open-compass/opencompass) except humaneval and mbpp as we experience code timeout and postprocess issues.
|
| 75 |
|
| 76 |
### Chat Model
|
| 77 |
|
|
@@ -85,9 +85,6 @@ We present the performance results of our chat model and other LLM on various st
|
|
| 85 |
| Arena-Hard | 24.2 | 42.6 | 43.1 |
|
| 86 |
| GSM8K | 81.42 | 79.45 | 84.04 |
|
| 87 |
| MATH | 42.28 | 54.06 | 51.48 |
|
| 88 |
-
| USMLE | 58.70 | 55.84 | 79.70 |
|
| 89 |
-
| CFA 2.0 | 35.5 | 42.5 | 62.75 |
|
| 90 |
-
|
| 91 |
|
| 92 |
### Long Context
|
| 93 |
|
|
|
|
| 71 |
| HellaSwag(0-shot) | 82.03 | 81.57 | 83.32 |
|
| 72 |
|
| 73 |
|
| 74 |
+
**Note:** To facilitate reproduction, the results of common benchmarks are generated by [OpenCompass](https://github.com/open-compass/opencompass) except humaneval and mbpp as we experience code timeout and postprocess issues.
|
| 75 |
|
| 76 |
### Chat Model
|
| 77 |
|
|
|
|
| 85 |
| Arena-Hard | 24.2 | 42.6 | 43.1 |
|
| 86 |
| GSM8K | 81.42 | 79.45 | 84.04 |
|
| 87 |
| MATH | 42.28 | 54.06 | 51.48 |
|
|
|
|
|
|
|
|
|
|
| 88 |
|
| 89 |
### Long Context
|
| 90 |
|