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")# 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 ·
7a05c8a
1
Parent(s): 972bfe2
update model.
Browse files- README.md +1 -1
- pytorch_model-00001-of-00002.bin +1 -1
- pytorch_model-00002-of-00002.bin +1 -1
README.md
CHANGED
|
@@ -16,7 +16,7 @@ We use the [Eleuther AI Language Model Evaluation Harness](https://github.com/El
|
|
| 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) | 62.4 | 59.58 | 83.31 | 64.16 | 42.15 |
|
| 19 |
-
| **Ours** | **67.
|
| 20 |
|
| 21 |
|
| 22 |
## Training procedure
|
|
|
|
| 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) | 62.4 | 59.58 | 83.31 | 64.16 | 42.15 |
|
| 19 |
+
| **Ours** | **67.82** | 67.41 | 82.63 | 61.69 | 59.57 |
|
| 20 |
|
| 21 |
|
| 22 |
## Training procedure
|
pytorch_model-00001-of-00002.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 9943028044
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4ffa95a2a4a128dadefc9b140e0bce89f8d72f7e6ebec214d8ccc0adee0b9e7e
|
| 3 |
size 9943028044
|
pytorch_model-00002-of-00002.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4540535647
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:03d392af969d3edb722b5ce870f34b35f94666515a607533f15a18a9e4c534f7
|
| 3 |
size 4540535647
|