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
Verified signature017f0c9 -
Update config.json
Verified signature2df8c94 -
Update config.json
Verified signature671e00f
-
Update config.json
ddba1ac
-
Update config.json
89d31c4
-
Update config.json
fbc38a3
-
Update config.json
3790cb2 -
Update config.json
cd0d226 -
Update config.json
794a249 -
Update config.json
fa6a743 -
Update config.json
564cc1b -
Update config.json
af28f1c -
Update config.json
43e8c26 -
Update config.json
45c9213
-
Update config.json
50baae6 -
Update config.json
b026668 -
Update config.json
adc09a3
-
Epoch 0 - Loss: 5.3058
c7cd934 -
Delete config.json
467dd8c -
Epoch 0 - Loss: 1.8236
f1572fb
-
Update config.json
b83a1cb -
Update config.json
8ce5811 -
Update config.json
82b6ae2 -
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 config.json
1313a75
-
Upload folder using huggingface_hub
d68ed6b -
Update config.json
096ce2c
-
Upload folder using huggingface_hub
d876833
-
Update config.json
17c934a -
Update config.json
7695431 -
Update config.json
53aa459 -
Upload folder using huggingface_hub
0b4c926 -
Update config.json
0396bc1 -
Update config.json
4deed42 -
Update config.json
6ccc7b3 -
Update config.json
6cd1963 -
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