How to use openchat/openchat_8192 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="openchat/openchat_8192")
# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("openchat/openchat_8192") model = AutoModelForCausalLM.from_pretrained("openchat/openchat_8192")
How to use openchat/openchat_8192 with vLLM:
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "openchat/openchat_8192" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "openchat/openchat_8192", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'
docker model run hf.co/openchat/openchat_8192
How to use openchat/openchat_8192 with SGLang:
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "openchat/openchat_8192" \ --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": "openchat/openchat_8192", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'
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_8192" \ --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": "openchat/openchat_8192", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'
How to use openchat/openchat_8192 with Docker Model Runner:
Hi there, I’ve seen that you have a default logo so I've prepared a special one for your organization profile. Please feel free to use it if you like.
it will probably look like this on your org profile :)
here is a more literal one as your alternative.
love those suggestions!
@imone would be awesome for you to have a nice org avatar/logo in my opinion!
Thanks! I accepted your first logo design and it was very creative. Could you provide the source files or create a logo like this for the GitHub repository, e.g. a logo with the word "OPENCHAT" on a white background?
sure! Below are a white background and an original background color.
Thanks! I updated the logo in GitHub
· Sign up or log in to comment