Text Generation
Transformers
Safetensors
GGUF
English
llama
agi
tinyllama
EmpirionArcaneEmpire
conversational
text-generation-inference
Instructions to use Hulk810154/Kai with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Hulk810154/Kai with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Hulk810154/Kai") 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("Hulk810154/Kai") model = AutoModelForCausalLM.from_pretrained("Hulk810154/Kai", 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
- llama.cpp
How to use Hulk810154/Kai with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Hulk810154/Kai:Q2_K # Run inference directly in the terminal: llama cli -hf Hulk810154/Kai:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Hulk810154/Kai:Q2_K # Run inference directly in the terminal: llama cli -hf Hulk810154/Kai:Q2_K
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf Hulk810154/Kai:Q2_K # Run inference directly in the terminal: ./build/bin/llama cli -hf Hulk810154/Kai:Q2_K
Use Docker
docker model run hf.co/Hulk810154/Kai:Q2_K
- Llama new
- LM Studio
- Jan
- vLLM
How to use Hulk810154/Kai with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Hulk810154/Kai" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Hulk810154/Kai", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Hulk810154/Kai:Q2_K
- SGLang
How to use Hulk810154/Kai 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 "Hulk810154/Kai" \ --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": "Hulk810154/Kai", "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 "Hulk810154/Kai" \ --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": "Hulk810154/Kai", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use Hulk810154/Kai with Ollama:
ollama run hf.co/Hulk810154/Kai:Q2_K
- Unsloth Desktop
- Docker Model Runner
How to use Hulk810154/Kai with Docker Model Runner:
docker model run hf.co/Hulk810154/Kai:Q2_K
- Lemonade
How to use Hulk810154/Kai with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Hulk810154/Kai:Q2_K
Run and chat with the model
lemonade run user.Kai-Q2_K
List all available models
lemonade list
- Atomic Chat
Commit History
-
Upload tinyllama-1.1b-chat-v1.0.Q2_K.gguf
Verified signature939f9d0
-
Rename tokenizer_config (2).json to tokenizer_config.json
Verified signatureaae057d -
Rename tokenizer (2).model to tokenizer.model
Verified signature0b7bcbd -
Rename tokenizer (2).json to tokenizer.json
Verified signature81a9b69 -
Rename special_tokens_map (2).json to special_tokens_map.json
Verified signature60f6359 -
Rename model (1).safetensors to model.safetensors
Verified signatured5c9a98 -
Rename generation_config (2).json to generation_config.json
Verified signature383a6c7 -
Rename config (2).json to config.json
Verified signature5b97b28 -
Update README.md
Verified signature589c455 -
Upload model (1).safetensors
Verified signaturec0c3f3d -
Upload 7 files
Verified signature28a3e07 -
Update README.md
Verified signature308eeb9 -
Update README.md
Verified signature064dcd4 -
initial commit
Verified signature77a89cb