Text Generation
Transformers
PyTorch
Safetensors
English
mistral
LLMs
Intel
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use Intel/neural-chat-7b-v3-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Intel/neural-chat-7b-v3-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Intel/neural-chat-7b-v3-1") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Intel/neural-chat-7b-v3-1") model = AutoModelForCausalLM.from_pretrained("Intel/neural-chat-7b-v3-1") 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 Intel/neural-chat-7b-v3-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-v3-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Intel/neural-chat-7b-v3-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Intel/neural-chat-7b-v3-1
- SGLang
How to use Intel/neural-chat-7b-v3-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-v3-1" \ --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": "Intel/neural-chat-7b-v3-1", "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 "Intel/neural-chat-7b-v3-1" \ --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": "Intel/neural-chat-7b-v3-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Intel/neural-chat-7b-v3-1 with Docker Model Runner:
docker model run hf.co/Intel/neural-chat-7b-v3-1
MarCognity-AI for Intel β Neural Chat
#23 opened 7 months ago
by
elly99
MarCognity-AI for NeuralChat-7B
#22 opened 8 months ago
by
elly99
A new version of Mistral is out! Id love to see a new neural chat
#20 opened about 2 years ago
by
rombodawg
Model not found when using OVModelForCausalLM
#17 opened over 2 years ago
by
thirdrock
How to load pytorch shards only and not safe-tensors ? so that we can load only the pytorch model into gpu from huggingface?
#16 opened over 2 years ago
by
bilwa99
Add extra `metadata` in `README.md`
#15 opened over 2 years ago
by
alvarobartt
Other benchmarks as MT-Bench and/or AlpacaEval
2
#14 opened over 2 years ago
by
alvarobartt
About DROP results within the `lm-eval-harness`
4
#13 opened over 2 years ago
by
alvarobartt
Request: DOI
1
#12 opened over 2 years ago
by
Sintayew4
Potential ways to reduce inference latency on CPU cluster?
2
#11 opened over 2 years ago
by
TheBacteria
Add base_model metadata
#9 opened over 2 years ago
by
davanstrien
Context Length
π 1
2
#7 opened over 2 years ago
by
mrfakename
Free and ready to use neural-chat-7B-v3-1-GGUF model as OpenAI API compatible endpoint
π€π 3
#6 opened over 2 years ago
by
limcheekin
What is the different between Intel/neural-chat-7b-v3-1 vs Intel/neural-chat-7b-v3?
π 1
3
#3 opened over 2 years ago
by
Ichsan2895
Prompt Template?
π 4
13
#1 opened over 2 years ago
by
fakezeta