Text Generation
Transformers
Safetensors
GGUF
k2_horizon
k2-horizon
unreal-engine
blueprint
cpp
q4-k-m
bfloat16
custom-code
conversational
custom_code
Instructions to use qwfasf/K2-Horizon-7B-UnrealEngine with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use qwfasf/K2-Horizon-7B-UnrealEngine with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="qwfasf/K2-Horizon-7B-UnrealEngine", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("qwfasf/K2-Horizon-7B-UnrealEngine", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use qwfasf/K2-Horizon-7B-UnrealEngine 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 qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M # Run inference directly in the terminal: llama cli -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M # Run inference directly in the terminal: llama cli -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
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 qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Use Docker
docker model run hf.co/qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use qwfasf/K2-Horizon-7B-UnrealEngine with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "qwfasf/K2-Horizon-7B-UnrealEngine" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "qwfasf/K2-Horizon-7B-UnrealEngine", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
- SGLang
How to use qwfasf/K2-Horizon-7B-UnrealEngine 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 "qwfasf/K2-Horizon-7B-UnrealEngine" \ --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": "qwfasf/K2-Horizon-7B-UnrealEngine", "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 "qwfasf/K2-Horizon-7B-UnrealEngine" \ --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": "qwfasf/K2-Horizon-7B-UnrealEngine", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use qwfasf/K2-Horizon-7B-UnrealEngine with Ollama:
ollama run hf.co/qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
- Unsloth Desktop
- Pi
How to use qwfasf/K2-Horizon-7B-UnrealEngine with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use qwfasf/K2-Horizon-7B-UnrealEngine with Docker Model Runner:
docker model run hf.co/qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
- Lemonade
How to use qwfasf/K2-Horizon-7B-UnrealEngine with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Run and chat with the model
lemonade run user.K2-Horizon-7B-UnrealEngine-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use qwfasf/K2-Horizon-7B-UnrealEngine with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use qwfasf/K2-Horizon-7B-UnrealEngine with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "qwfasf/K2-Horizon-7B-UnrealEngine:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Download export_manifest.json from qwfasf/K2-Horizon-7B-UnrealEngine: direct link, hf CLI and curl.
- Browser
- Download file 3.06 kB
-
https://huggingface.co/qwfasf/K2-Horizon-7B-UnrealEngine/resolve/main/export_manifest.json
- Command line
-
hf download hf://qwfasf/K2-Horizon-7B-UnrealEngine/export_manifest.json
-
curl -L -o export_manifest.json https://huggingface.co/qwfasf/K2-Horizon-7B-UnrealEngine/resolve/main/export_manifest.json
3.06 kB
| { | |
| "version": 160, | |
| "passed": true, | |
| "output": "/root/autodl-fs/K2_Horizon_7B_blueprint_cpp_v152_merged_bf16_v160", | |
| "source_adapter_sha256": "62ff493e8cae7c706a9eda313ada15e7baeb04a51c11f651650bd8c4f202f363", | |
| "dtype": "bfloat16", | |
| "files": [ | |
| { | |
| "name": "BASE_README.md", | |
| "bytes": 27915, | |
| "sha256": "8ef866f9462bafa217e20a1d556887121ee0d975fc7619e7b8ee25a6991504bb" | |
| }, | |
| { | |
| "name": "README_EXPORT.txt", | |
| "bytes": 485, | |
| "sha256": "0fed29828b13e24a960a72274ee9e2c14b0c59568db72d9dfbc8e4f3e5c6eab8" | |
| }, | |
| { | |
| "name": "chat_template.jinja", | |
| "bytes": 52157, | |
| "sha256": "5008a8535f850190e119cbb64dcf74c9483c8b483e8e3558795d71e1c3e31e10" | |
| }, | |
| { | |
| "name": "config.json", | |
| "bytes": 1756, | |
| "sha256": "2c8cf2424b065554fefb8a0bed523e1cfaf647f3bab19d3a6196d2fde3c4e273" | |
| }, | |
| { | |
| "name": "configuration_k2_horizon.py", | |
| "bytes": 3529, | |
| "sha256": "5c2f993c1053d9462ebea6dea416c897fddfbb4a5edd904e486936b20d4badc5" | |
| }, | |
| { | |
| "name": "generation_config.json", | |
| "bytes": 124, | |
| "sha256": "f644cf8e6d20b067d058c719c9df409e71715f00aec54876f1a5412f664544ef" | |
| }, | |
| { | |
| "name": "merge_provenance.json", | |
| "bytes": 1720, | |
| "sha256": "bed69b395f82e26dc37dc498864d441542c977c922f18c8251d35977bfb128a8" | |
| }, | |
| { | |
| "name": "model-00001-of-00006.safetensors", | |
| "bytes": 2053111936, | |
| "sha256": "41e1af48cd6c27425e07af1336da9b61d701170e1062a6e4843fe94a3afc9a1a" | |
| }, | |
| { | |
| "name": "model-00002-of-00006.safetensors", | |
| "bytes": 3982587224, | |
| "sha256": "1e75a4832a870438e0bacce73ae0bf8d71324f6f9ad1f0aa40f6706701c3979e" | |
| }, | |
| { | |
| "name": "model-00003-of-00006.safetensors", | |
| "bytes": 3959597384, | |
| "sha256": "dee2fa7173c4c7b10fdacec7f33fd60d1f09c2af283291db6e4d6c95ccd46739" | |
| }, | |
| { | |
| "name": "model-00004-of-00006.safetensors", | |
| "bytes": 3959597432, | |
| "sha256": "3aabc27936e1a406645fb1958dc638a221d75cd6e77a5255f75c5b53109bd043" | |
| }, | |
| { | |
| "name": "model-00005-of-00006.safetensors", | |
| "bytes": 3967994464, | |
| "sha256": "3584253a343273d158c8e719211f931e795648afbd80e09bef0d6cebc148aeb5" | |
| }, | |
| { | |
| "name": "model-00006-of-00006.safetensors", | |
| "bytes": 75506128, | |
| "sha256": "41359f2092e5238b08744633d5f3cf0c078e41523fb43226e33b291055001825" | |
| }, | |
| { | |
| "name": "model.safetensors.index.json", | |
| "bytes": 26958, | |
| "sha256": "43ad1e6ed6a2c498c4587363798fd3a7aac12b5ab2674b6b15ae8d08b3e6667b" | |
| }, | |
| { | |
| "name": "modeling_k2_horizon.py", | |
| "bytes": 49535, | |
| "sha256": "fb09e010956bd51cfa7d4055b4381cff34c9e06164066b49e3546f38b2e6242f" | |
| }, | |
| { | |
| "name": "tokenizer.json", | |
| "bytes": 20637260, | |
| "sha256": "838d767b7c9925ff257feb20eaa4299a8e3cc35bb3d805589c373f51d2cc3cb6" | |
| }, | |
| { | |
| "name": "tokenizer_config.json", | |
| "bytes": 328, | |
| "sha256": "ac2eb59eed0681446405669b482d6be38ab5fca49e4766c562dcbbd3782cc27d" | |
| } | |
| ], | |
| "total_bytes": 18019196335, | |
| "manifest_excludes_itself": true | |
| } | |