Text Generation
Transformers
PyTorch
Safetensors
English
mistral
LLMs
Intel
Eval Results (legacy)
text-generation-inference
Instructions to use INC4AI/neural-chat-7b-v3 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use INC4AI/neural-chat-7b-v3 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="INC4AI/neural-chat-7b-v3")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("INC4AI/neural-chat-7b-v3") model = AutoModelForCausalLM.from_pretrained("INC4AI/neural-chat-7b-v3", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use INC4AI/neural-chat-7b-v3 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "INC4AI/neural-chat-7b-v3" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "INC4AI/neural-chat-7b-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/INC4AI/neural-chat-7b-v3
- SGLang
How to use INC4AI/neural-chat-7b-v3 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 "INC4AI/neural-chat-7b-v3" \ --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": "INC4AI/neural-chat-7b-v3", "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 "INC4AI/neural-chat-7b-v3" \ --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": "INC4AI/neural-chat-7b-v3", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use INC4AI/neural-chat-7b-v3 with Docker Model Runner:
docker model run hf.co/INC4AI/neural-chat-7b-v3
lvkaokao commited on
Commit ·
70b518b
1
Parent(s): 7a05c8a
update metric from llm leaderboard.
Browse files
README.md
CHANGED
|
@@ -11,12 +11,12 @@ Neural-chat-7b-v3 was trained between September and October, 2023.
|
|
| 11 |
|
| 12 |
## Evaluation
|
| 13 |
|
| 14 |
-
We
|
| 15 |
|
| 16 |
-
| Model | Average ⬆️| ARC (25-s) ⬆️ | HellaSwag (10-s) ⬆️ | MMLU (5-s) ⬆️| TruthfulQA (MC) (0-s) ⬆️ |
|
| 17 |
-
| --- | --- | --- | --- | --- | --- |
|
| 18 |
-
|[mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) |
|
| 19 |
-
| **Ours** | **
|
| 20 |
|
| 21 |
|
| 22 |
## Training procedure
|
|
|
|
| 11 |
|
| 12 |
## Evaluation
|
| 13 |
|
| 14 |
+
We submit our model to [open_llm_leaderboard](https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard), and the model performance has been improved significantl as we see from the average metric of 7 tasks from the leaderboard.
|
| 15 |
|
| 16 |
+
| Model | Average ⬆️| ARC (25-s) ⬆️ | HellaSwag (10-s) ⬆️ | MMLU (5-s) ⬆️| TruthfulQA (MC) (0-s) ⬆️ | Winogrande (5-s) | GSM8K (5-s) | DROP (3-s) |
|
| 17 |
+
| --- | --- | --- | --- | --- | --- | --- | --- | --- |
|
| 18 |
+
|[mistralai/Mistral-7B-v0.1](https://huggingface.co/mistralai/Mistral-7B-v0.1) | 50.32 | 59.58 | 83.31 | 64.16 | 42.15 | 78.37 | 18.12 | 6.14 |
|
| 19 |
+
| **Ours** | **57.31** | 67.15 | 83.29 | 62.26 | 58.77 | 78.06 | 1.21 | 50.43 |
|
| 20 |
|
| 21 |
|
| 22 |
## Training procedure
|