Safetensors
GGUF
Chinese
English
gemma2
gemma
leviathan
ollama
military-strategy
advisor
dense-model
Instructions to use Chang-chih/leviathan-chat-9b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Chang-chih/leviathan-chat-9b with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Chang-chih/leviathan-chat-9b", filename="model.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Chang-chih/leviathan-chat-9b 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 Chang-chih/leviathan-chat-9b # Run inference directly in the terminal: llama cli -hf Chang-chih/leviathan-chat-9b
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Chang-chih/leviathan-chat-9b # Run inference directly in the terminal: llama cli -hf Chang-chih/leviathan-chat-9b
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Chang-chih/leviathan-chat-9b # Run inference directly in the terminal: ./llama-cli -hf Chang-chih/leviathan-chat-9b
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Chang-chih/leviathan-chat-9b # Run inference directly in the terminal: ./build/bin/llama-cli -hf Chang-chih/leviathan-chat-9b
Use Docker
docker model run hf.co/Chang-chih/leviathan-chat-9b
- LM Studio
- Jan
- Ollama
How to use Chang-chih/leviathan-chat-9b with Ollama:
ollama run hf.co/Chang-chih/leviathan-chat-9b
- Unsloth Studio
How to use Chang-chih/leviathan-chat-9b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Chang-chih/leviathan-chat-9b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Chang-chih/leviathan-chat-9b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Chang-chih/leviathan-chat-9b to start chatting
- Atomic Chat new
- Docker Model Runner
How to use Chang-chih/leviathan-chat-9b with Docker Model Runner:
docker model run hf.co/Chang-chih/leviathan-chat-9b
- Lemonade
How to use Chang-chih/leviathan-chat-9b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Chang-chih/leviathan-chat-9b
Run and chat with the model
lemonade run user.leviathan-chat-9b-{{QUANT_TAG}}List all available models
lemonade list
🐋 Leviathan-Chat-9B
This is a GGUF version of the Leviathan Legion's strategic advisor model.
Model Details
- Base Model: Google Gemma-2-9B
- Format: GGUF
- Size: 18 GB
- Purpose: Strategic analysis using Sun Tzu's "The Art of War"
Usage
ollama run leviathan-chat-9b "你的問題"
Gemma Terms of Use
# Leviathan-Chat-9B (利維坦參謀模型)
本模型是「利維坦軍團」的核心參謀 AI,基於高效率參謀架構打造。它專注於戰術分析、防禦部署及複雜決策支援。
## 戰術定位 (Model Overview)
* **架構**:高效率緊湊型架構 (Dense Optimized),繼承利維坦軍團的參謀思維邏輯。
* **戰略職責**:精通孫子兵法思維、數位轉型諮詢、防禦部署與游擊戰術。
* **行為準則**:回應必須嚴格遵循「分析→判斷→建議」的結構。
## 部署建議 (Deployment)
您可以透過 Ollama 進行本地部署:
```bash
# 若已發布至 library,可直接拉取;否則請使用您本地的權重路徑
ollama run Chang-chih/leviathan-chat-9b
- Downloads last month
- 1,577
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support
Model tree for Chang-chih/leviathan-chat-9b
Base model
google/gemma-2-9b