Text Generation
Transformers
English
roblox
luau
game-development
code-generation
blender
3d-modeling
artificial-intelligence
Instructions to use kingdavezz/king-ai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use kingdavezz/king-ai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="kingdavezz/king-ai")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("kingdavezz/king-ai", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use kingdavezz/king-ai with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "kingdavezz/king-ai" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "kingdavezz/king-ai", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/kingdavezz/king-ai
- SGLang
How to use kingdavezz/king-ai 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 "kingdavezz/king-ai" \ --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": "kingdavezz/king-ai", "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 "kingdavezz/king-ai" \ --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": "kingdavezz/king-ai", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use kingdavezz/king-ai with Docker Model Runner:
docker model run hf.co/kingdavezz/king-ai
Download KingAI-Model-Files.zip from kingdavezz/king-ai: direct link, hf CLI and curl.
- Browser
- Download file 96.9 kB
-
https://huggingface.co/kingdavezz/king-ai/resolve/main/KingAI-Model-Files.zip
- Command line
-
hf download hf://kingdavezz/king-ai/KingAI-Model-Files.zip
-
curl -L -o KingAI-Model-Files.zip https://huggingface.co/kingdavezz/king-ai/resolve/main/KingAI-Model-Files.zip
96.9 kB
- Xet hash:
- 7b23305ed6614a7171c1662cf08fa45b19785200eec3a92d1218665cdb4a851d
- Size of remote file:
- 96.9 kB
- SHA256:
- 12085e9ea8109afc2a2bad048b37772cd2a1eadf154e43d2d474d94ec75ba2a0
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.