Text Generation
Transformers
PyTorch
mistral
openchat
C-RLFT
conversational
text-generation-inference
Instructions to use openchat/openchat_3.5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use openchat/openchat_3.5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openchat/openchat_3.5") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("openchat/openchat_3.5") model = AutoModelForCausalLM.from_pretrained("openchat/openchat_3.5") 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 openchat/openchat_3.5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openchat/openchat_3.5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openchat/openchat_3.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/openchat/openchat_3.5
- SGLang
How to use openchat/openchat_3.5 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 "openchat/openchat_3.5" \ --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": "openchat/openchat_3.5", "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 "openchat/openchat_3.5" \ --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": "openchat/openchat_3.5", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use openchat/openchat_3.5 with Docker Model Runner:
docker model run hf.co/openchat/openchat_3.5
add AIBOM
#50 opened 11 months ago
by
sabato-nocera
Online demo gone
#49 opened 12 months ago
by
MichaelBoll
Adding `safetensors` variant of this model
#48 opened over 1 year ago
by
SFconvertbot
Teenage friends
π€― 1
#47 opened over 1 year ago
by
Sofia123
Questions about details of dataset usage for reproducing the openchat_3.5
#46 opened about 2 years ago
by
syboomsysy
Incorrect system prompt in `tokenizer.chat_template`?
#45 opened about 2 years ago
by
kaizau
Which model is your demo page using?
2
#44 opened over 2 years ago
by
wempoo
What is the best way for the inference process in LORA in PEFT approach
#43 opened over 2 years ago
by
Pradeep1995
Which is the actual way to store the Adapter after PEFT finetuning
#42 opened over 2 years ago
by
Pradeep1995
With use_cache=False, the reponse is taking very long
#41 opened over 2 years ago
by
mosama
Adding `safetensors` variant of this model
π 1
#40 opened over 2 years ago
by
SFconvertbot
PEFT based Fine Tuned model hallucinates values from the fine tuning training data while inferencing
1
#39 opened over 2 years ago
by
Pradeep1995
should we follow the same openchat prompt structure while finetuning time?
3
#38 opened over 2 years ago
by
Pradeep1995
Incomplete Output even with max_new_tokens
1
#37 opened over 2 years ago
by
Pradeep1995
Adding `safetensors` variant of this model
#36 opened over 2 years ago
by
SFconvertbot
Great. But you need to filter out url sources and other gratuitious info.
2
#35 opened over 2 years ago
by deleted
How did Mixtral make openchat_3.5 worse?
π 1
3
#34 opened over 2 years ago
by
JJJJJPSYCHIC
Some feedback
1
#33 opened over 2 years ago
by
cmp-nct
API or local excact same is the huggingface.co/chat ?
#32 opened over 2 years ago
by
usermac
This is the greatest model for chat yet
π€ 1
2
#31 opened over 2 years ago
by
iNeverLearnedHowToRead
Adding `safetensors` variant of this model
#30 opened over 2 years ago
by
SFconvertbot
Internal Server Error
π 3
2
#28 opened over 2 years ago
by
elfeky
function calling
β€οΈπ 4
4
#24 opened over 2 years ago
by
mersahin26
Adding `safetensors` variant of this model
#22 opened over 2 years ago
by
PlanetDOGE
[AUTOMATED] Model Memory Requirements
π 2
#20 opened over 2 years ago
by
model-sizer-bot
Best chat model
ππ€ 8
1
#19 opened over 2 years ago
by
BrainSlugs83
Add chat_template to tokenizaer_config.json
π 4
1
#18 opened over 2 years ago
by
noamwies
δ»θΏδΈͺ樑εζ沑ζζ¨ηθ½εε
1
#17 opened over 2 years ago
by
ddls
Overfit on ChatGPT data
2
#15 opened over 2 years ago
by
macadeliccc
What base model does it based?
2
#14 opened over 2 years ago
by
lucasjin
Add widget example
β€οΈ 1
#13 opened over 2 years ago
by
mishig
Why does it report an error like this when running?
2
#12 opened over 2 years ago
by
Simkinhu
Request for Model Sharding of OpenChat 3.5 for Improved Accessibility
π€ 2
1
#10 opened over 2 years ago
by
Firejowl
Great. Now make 128k version like they done with Mistral lately : )
π 3
2
#8 opened over 2 years ago
by
Pumba2
Free and ready to use openchat_3.5-GGUF model as OpenAI API compatible endpoint
π 5
#7 opened over 2 years ago
by
limcheekin
This might help for your next model...
π€β€οΈ 3
3
#6 opened over 2 years ago
by
Vezora
How to setup system message
13
#5 opened over 2 years ago
by
fernandofernandes
Hallucinations
π 2
10
#2 opened over 2 years ago
by
Ricepig