Text Generation
Transformers
Safetensors
English
mistral
mixtral
solar
model-fusion
fusechat
conversational
Eval Results (legacy)
text-generation-inference
Instructions to use FuseAI/OpenChat-3.5-7B-Solar with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use FuseAI/OpenChat-3.5-7B-Solar with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="FuseAI/OpenChat-3.5-7B-Solar") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("FuseAI/OpenChat-3.5-7B-Solar") model = AutoModelForCausalLM.from_pretrained("FuseAI/OpenChat-3.5-7B-Solar", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use FuseAI/OpenChat-3.5-7B-Solar with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "FuseAI/OpenChat-3.5-7B-Solar" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "FuseAI/OpenChat-3.5-7B-Solar", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/FuseAI/OpenChat-3.5-7B-Solar
- SGLang
How to use FuseAI/OpenChat-3.5-7B-Solar 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 "FuseAI/OpenChat-3.5-7B-Solar" \ --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": "FuseAI/OpenChat-3.5-7B-Solar", "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 "FuseAI/OpenChat-3.5-7B-Solar" \ --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": "FuseAI/OpenChat-3.5-7B-Solar", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use FuseAI/OpenChat-3.5-7B-Solar with Docker Model Runner:
docker model run hf.co/FuseAI/OpenChat-3.5-7B-Solar
Commit History
-
Upload trainer_state.json with huggingface_hub
Verified signaturecc6a9cd -
Upload tokenizer_config.json with huggingface_hub
Verified signature75f7a29 -
Upload tokenizer.model with huggingface_hub
Verified signature92cacea -
Upload tokenizer.json with huggingface_hub
Verified signature4c4a1dc -
Upload special_tokens_map.json with huggingface_hub
Verified signature046ac5d -
Upload model.safetensors.index.json with huggingface_hub
Verified signature54643e9 -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signaturea70f52b -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signaturef402cc1 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signature562bf27 -
Upload generation_config.json with huggingface_hub
Verified signature5365adf -
Upload config.json with huggingface_hub
Verified signature3fb2741 -
Upload added_tokens.json with huggingface_hub
Verified signature3d9802e -
Upload training_args.bin with huggingface_hub
Verified signature8eb1647 -
Upload trainer_state.json with huggingface_hub
Verified signature61ed7a9 -
Upload tokenizer_config.json with huggingface_hub
Verified signature838e4b7 -
Upload tokenizer.model with huggingface_hub
Verified signaturefad1523 -
Upload tokenizer.json with huggingface_hub
Verified signature92a2e2c -
Upload special_tokens_map.json with huggingface_hub
Verified signaturea6bf931 -
Upload model.safetensors.index.json with huggingface_hub
Verified signature36cd4f6 -
Upload model-00003-of-00003.safetensors with huggingface_hub
Verified signature5167409 -
Upload model-00002-of-00003.safetensors with huggingface_hub
Verified signature225b3a8 -
Upload model-00001-of-00003.safetensors with huggingface_hub
Verified signaturedad67c7 -
Upload generation_config.json with huggingface_hub
Verified signaturedbc5b46 -
Upload config.json with huggingface_hub
Verified signatureaa650dd -
Upload added_tokens.json with huggingface_hub
Verified signature9658c33 -
Upload tokenizer.model with huggingface_hub
Verified signature565fb1d -
initial commit
Verified signaturef9ae8d1