Instructions to use unamedai/KateAI with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unamedai/KateAI with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unamedai/KateAI")# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("unamedai/KateAI", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use unamedai/KateAI with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unamedai/KateAI" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unamedai/KateAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/unamedai/KateAI
- SGLang
How to use unamedai/KateAI 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 "unamedai/KateAI" \ --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": "unamedai/KateAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "unamedai/KateAI" \ --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": "unamedai/KateAI", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use unamedai/KateAI with Docker Model Runner:
docker model run hf.co/unamedai/KateAI
Commit History
-
Update config.json
b83a1cb -
Update config.json
8ce5811 -
Update config.json
82b6ae2 -
Upload 2 files
d2d4009 -
Delete tokenizer.json
9dc97ed -
Update config.json
ce915bc -
Update config.json
c046086 -
Upload 12 files
2d03ac6 -
Update config.json
3374124 -
Upload 12 files
3235fdf -
Update config.json
7ff3ff3 -
Update config.json
596a32e -
Update config.json
4359bc9 -
Upload 10 files
143e1fb -
Delete vocab.txt
f718b27 -
Delete tokenizer_config.json
45fd101 -
Delete tokenizer.json
c956eb7 -
Delete special_tokens_map.json
2efb379 -
Delete model_card.yaml
ec6c176 -
Delete config.json
1313a75 -
Delete .gitattributes
f69210d
-
Upload folder using huggingface_hub
27423a9 -
Upload folder using huggingface_hub
fa443e4
-
Upload model_card.yaml
b948f8c
-
Upload folder using huggingface_hub
d68ed6b -
Update config.json
096ce2c
-
Upload folder using huggingface_hub
d876833
-
Update README.md
b52cef2 -
Update README.md
333e2f1 -
Update config.json
17c934a -
Update config.json
7695431 -
Update config.json
53aa459 -
Update README.md
3dcb021 -
Upload folder using huggingface_hub
0b4c926 -
Update config.json
0396bc1 -
Update config.json
4deed42 -
Update config.json
6ccc7b3 -
Update config.json
6cd1963 -
Update README.md
9381b6a -
Update config.json
0d9677f -
Update config.json
253a458 -
Update config.json
18c2074 -
Upload folder using huggingface_hub
398130b -
Upload folder using huggingface_hub
f576832 -
Upload folder using huggingface_hub
69b9ab2 -
Update README.md
0cc3aec -
Update README.md
431bb18 -
Upload 6 files
0c0e0c7 -
Rename pytorch_model.safetesors to model.safetesors
74ccda1 -
Upload 6 files
61834b5