Instructions to use CreitinGameplays/ConvAI-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CreitinGameplays/ConvAI-9b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CreitinGameplays/ConvAI-9b") 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("CreitinGameplays/ConvAI-9b") model = AutoModelForCausalLM.from_pretrained("CreitinGameplays/ConvAI-9b", 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 CreitinGameplays/ConvAI-9b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CreitinGameplays/ConvAI-9b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CreitinGameplays/ConvAI-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/CreitinGameplays/ConvAI-9b
- SGLang
How to use CreitinGameplays/ConvAI-9b 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 "CreitinGameplays/ConvAI-9b" \ --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": "CreitinGameplays/ConvAI-9b", "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 "CreitinGameplays/ConvAI-9b" \ --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": "CreitinGameplays/ConvAI-9b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use CreitinGameplays/ConvAI-9b with Docker Model Runner:
docker model run hf.co/CreitinGameplays/ConvAI-9b
Commit History
-
Update README.md
Verified signature06cf8d8 -
Update README.md
Verified signatureaf41556 -
Update README.md
Verified signature7bdb7c2 -
Update README.md
Verified signature9f92f9e -
Update README.md
Verified signature7ae7eae -
Update README.md
Verified signature5f2187a
-
Update README.md
Verified signature54b7628 -
Update README.md
Verified signature584f84e -
Update README.md
Verified signatured38f32d -
Rename generated_image-2.png to convai.png
Verified signature7f4e47c -
Upload generated_image-2.png
Verified signaturebf0988e -
Update README.md
Verified signaturec7b8f73 -
Upload tokenizer_config.json
Verified signaturea62ff31 -
Upload tokenizer_config.json
Verified signature4bde303 -
Upload tokenizer_config.json
Verified signature2d2a8a0
-
Update README.md
Verified signature0db2268
-
Update README.md
Verified signature80e49cc -
Update README.md
Verified signaturef1fa233
-
Upload folder using huggingface_hub
Verified signature8d73de3 -
Update README.md
Verified signature97012eb -
Upload folder using huggingface_hub
Verified signature76797b3
-
Upload folder using huggingface_hub
Verified signatureb742008 -
Update README.md
Verified signaturec8168db -
Update README.md
Verified signaturea8152f6 -
Update README.md
Verified signature9230490 -
Update README.md
Verified signaturea8e83c5
-
Upload folder using huggingface_hub
Verified signaturea195b67 -
Update README.md
Verified signaturee2a9ce7 -
Upload folder using huggingface_hub
Verified signature621a6dc
-
Upload folder using huggingface_hub
Verified signaturee06369d -
Update README.md
Verified signature4311900 -
Update README.md
Verified signature35606bd -
Update README.md
Verified signature1c9d2e3 -
Upload folder using huggingface_hub
Verified signaturea78893d -
Update README.md
Verified signaturea24d499 -
Update README.md
Verified signatureb14001a -
Update README.md
Verified signature87d8916 -
Update README.md
Verified signature5aa0099
-
Upload folder using huggingface_hub
Verified signaturea786e8c -
Upload folder using huggingface_hub
Verified signature7356e16 -
Upload folder using huggingface_hub
Verified signatureebd7bb2 -
initial commit
Verified signature8c92358