Text Generation
Transformers
Safetensors
llama
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use FuseAI/FuseChat-Llama-3.1-8B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FuseAI/FuseChat-Llama-3.1-8B-Instruct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FuseAI/FuseChat-Llama-3.1-8B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FuseAI/FuseChat-Llama-3.1-8B-Instruct") model = AutoModelForCausalLM.from_pretrained("FuseAI/FuseChat-Llama-3.1-8B-Instruct") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Inference
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use FuseAI/FuseChat-Llama-3.1-8B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FuseAI/FuseChat-Llama-3.1-8B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FuseAI/FuseChat-Llama-3.1-8B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FuseAI/FuseChat-Llama-3.1-8B-Instruct
- SGLang
How to use FuseAI/FuseChat-Llama-3.1-8B-Instruct 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 "FuseAI/FuseChat-Llama-3.1-8B-Instruct" \ --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": "FuseAI/FuseChat-Llama-3.1-8B-Instruct", "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 "FuseAI/FuseChat-Llama-3.1-8B-Instruct" \ --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": "FuseAI/FuseChat-Llama-3.1-8B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FuseAI/FuseChat-Llama-3.1-8B-Instruct with Docker Model Runner:
docker model run hf.co/FuseAI/FuseChat-Llama-3.1-8B-Instruct
Add missing metadata: library_name, pipeline_tag, license
#2
by nielsr HF Staff - opened
README.md
CHANGED
|
@@ -1,4 +1,6 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
| 2 |
model-index:
|
| 3 |
- name: FuseChat-Llama-3.1-8B-Instruct
|
| 4 |
results:
|
|
@@ -16,8 +18,7 @@ model-index:
|
|
| 16 |
value: 72.05
|
| 17 |
name: averaged accuracy
|
| 18 |
source:
|
| 19 |
-
url:
|
| 20 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
| 21 |
name: Open LLM Leaderboard
|
| 22 |
- task:
|
| 23 |
type: text-generation
|
|
@@ -33,8 +34,7 @@ model-index:
|
|
| 33 |
value: 30.85
|
| 34 |
name: normalized accuracy
|
| 35 |
source:
|
| 36 |
-
url:
|
| 37 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
| 38 |
name: Open LLM Leaderboard
|
| 39 |
- task:
|
| 40 |
type: text-generation
|
|
@@ -50,8 +50,7 @@ model-index:
|
|
| 50 |
value: 7.02
|
| 51 |
name: exact match
|
| 52 |
source:
|
| 53 |
-
url:
|
| 54 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
| 55 |
name: Open LLM Leaderboard
|
| 56 |
- task:
|
| 57 |
type: text-generation
|
|
@@ -67,8 +66,7 @@ model-index:
|
|
| 67 |
value: 7.38
|
| 68 |
name: acc_norm
|
| 69 |
source:
|
| 70 |
-
url:
|
| 71 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
| 72 |
name: Open LLM Leaderboard
|
| 73 |
- task:
|
| 74 |
type: text-generation
|
|
@@ -83,8 +81,7 @@ model-index:
|
|
| 83 |
value: 6.15
|
| 84 |
name: acc_norm
|
| 85 |
source:
|
| 86 |
-
url:
|
| 87 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
| 88 |
name: Open LLM Leaderboard
|
| 89 |
- task:
|
| 90 |
type: text-generation
|
|
@@ -101,12 +98,13 @@ model-index:
|
|
| 101 |
value: 30.37
|
| 102 |
name: accuracy
|
| 103 |
source:
|
| 104 |
-
url:
|
| 105 |
-
https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
| 106 |
name: Open LLM Leaderboard
|
| 107 |
-
|
| 108 |
-
|
|
|
|
| 109 |
---
|
|
|
|
| 110 |
<p align="center" width="100%">
|
| 111 |
</p>
|
| 112 |
|
|
@@ -116,7 +114,7 @@ FuseChat-3.0: Preference Optimization for Implicit Model Fusion
|
|
| 116 |
-----------------------------
|
| 117 |
|
| 118 |
<h4> |<a href="https://arxiv.org/abs/2412.03187"> π WRPO Paper </a> |
|
| 119 |
-
<a href="https://arxiv.org/pdf/2503.04222"> π FuseChat-3.0
|
| 120 |
<a href="https://github.com/SLIT-AI/FuseChat-3.0"> π± GitHub Repo </a> |
|
| 121 |
<a href="https://huggingface.co/FuseAI"> π€ Hugging Face </a> |
|
| 122 |
<a href="https://slit-ai.github.io/FuseChat-3.0/"> π Website </a> |
|
|
|
|
| 1 |
---
|
| 2 |
+
datasets:
|
| 3 |
+
- FuseAI/FuseChat-3.0-DPO-Data
|
| 4 |
model-index:
|
| 5 |
- name: FuseChat-Llama-3.1-8B-Instruct
|
| 6 |
results:
|
|
|
|
| 18 |
value: 72.05
|
| 19 |
name: averaged accuracy
|
| 20 |
source:
|
| 21 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
|
|
|
| 22 |
name: Open LLM Leaderboard
|
| 23 |
- task:
|
| 24 |
type: text-generation
|
|
|
|
| 34 |
value: 30.85
|
| 35 |
name: normalized accuracy
|
| 36 |
source:
|
| 37 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
|
|
|
| 38 |
name: Open LLM Leaderboard
|
| 39 |
- task:
|
| 40 |
type: text-generation
|
|
|
|
| 50 |
value: 7.02
|
| 51 |
name: exact match
|
| 52 |
source:
|
| 53 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
|
|
|
| 54 |
name: Open LLM Leaderboard
|
| 55 |
- task:
|
| 56 |
type: text-generation
|
|
|
|
| 66 |
value: 7.38
|
| 67 |
name: acc_norm
|
| 68 |
source:
|
| 69 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
|
|
|
| 70 |
name: Open LLM Leaderboard
|
| 71 |
- task:
|
| 72 |
type: text-generation
|
|
|
|
| 81 |
value: 6.15
|
| 82 |
name: acc_norm
|
| 83 |
source:
|
| 84 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
|
|
|
| 85 |
name: Open LLM Leaderboard
|
| 86 |
- task:
|
| 87 |
type: text-generation
|
|
|
|
| 98 |
value: 30.37
|
| 99 |
name: accuracy
|
| 100 |
source:
|
| 101 |
+
url: https://huggingface.co/spaces/open-llm-leaderboard/open_llm_leaderboard#/?search=FuseAI%2FFuseChat-Llama-3.1-8B-Instruct
|
|
|
|
| 102 |
name: Open LLM Leaderboard
|
| 103 |
+
library_name: transformers
|
| 104 |
+
pipeline_tag: text-generation
|
| 105 |
+
license: apache-2.0
|
| 106 |
---
|
| 107 |
+
|
| 108 |
<p align="center" width="100%">
|
| 109 |
</p>
|
| 110 |
|
|
|
|
| 114 |
-----------------------------
|
| 115 |
|
| 116 |
<h4> |<a href="https://arxiv.org/abs/2412.03187"> π WRPO Paper </a> |
|
| 117 |
+
<a href="https://arxiv.org/pdf/2503.04222"> π FuseChat-3.0 Paper </a> |
|
| 118 |
<a href="https://github.com/SLIT-AI/FuseChat-3.0"> π± GitHub Repo </a> |
|
| 119 |
<a href="https://huggingface.co/FuseAI"> π€ Hugging Face </a> |
|
| 120 |
<a href="https://slit-ai.github.io/FuseChat-3.0/"> π Website </a> |
|