Text Generation
Transformers
PyTorch
English
mpt
LLMs
Intel
custom_code
Eval Results (legacy)
text-generation-inference
Instructions to use Intel/neural-chat-7b-v1-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/neural-chat-7b-v1-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Intel/neural-chat-7b-v1-1", trust_remote_code=True)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Intel/neural-chat-7b-v1-1", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("Intel/neural-chat-7b-v1-1", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Intel/neural-chat-7b-v1-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Intel/neural-chat-7b-v1-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Intel/neural-chat-7b-v1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Intel/neural-chat-7b-v1-1
- SGLang
How to use Intel/neural-chat-7b-v1-1 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 "Intel/neural-chat-7b-v1-1" \ --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": "Intel/neural-chat-7b-v1-1", "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 "Intel/neural-chat-7b-v1-1" \ --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": "Intel/neural-chat-7b-v1-1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Intel/neural-chat-7b-v1-1 with Docker Model Runner:
docker model run hf.co/Intel/neural-chat-7b-v1-1
Imtiaz Sajwani commited on
Commit ·
928e689
1
Parent(s): 502ee16
add examples.
Browse files- README.md +12 -0
- examples/code.png +0 -0
- examples/summarization.png +0 -0
- examples/trip.png +0 -0
README.md
CHANGED
|
@@ -65,6 +65,18 @@ python run_generation.py \
|
|
| 65 |
--ipex
|
| 66 |
```
|
| 67 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 68 |
## Organizations developing the model
|
| 69 |
|
| 70 |
The NeuralChat team with members from Intel/SATG/AIA/AIPT. Core team members: Kaokao Lv, Liang Lv, Chang Wang, Wenxin Zhang, Xuhui Ren, and Haihao Shen.
|
|
|
|
| 65 |
--ipex
|
| 66 |
```
|
| 67 |
|
| 68 |
+
### Examples
|
| 69 |
+
|
| 70 |
+
- code generation
|
| 71 |
+

|
| 72 |
+
|
| 73 |
+
- summarization
|
| 74 |
+

|
| 75 |
+
|
| 76 |
+
- trip
|
| 77 |
+

|
| 78 |
+
|
| 79 |
+
|
| 80 |
## Organizations developing the model
|
| 81 |
|
| 82 |
The NeuralChat team with members from Intel/SATG/AIA/AIPT. Core team members: Kaokao Lv, Liang Lv, Chang Wang, Wenxin Zhang, Xuhui Ren, and Haihao Shen.
|
examples/code.png
ADDED
|
examples/summarization.png
ADDED
|
examples/trip.png
ADDED
|