Text Generation
Safetensors
GGUF
Chinese
English
qwen3
fortune-telling
qwen
qwen2.5
ollama
conversational
Instructions to use Tbata7/FortuneQwen3_4b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Tbata7/FortuneQwen3_4b 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 Tbata7/FortuneQwen3_4b:Q8_0 # Run inference directly in the terminal: llama cli -hf Tbata7/FortuneQwen3_4b:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Tbata7/FortuneQwen3_4b:Q8_0 # Run inference directly in the terminal: llama cli -hf Tbata7/FortuneQwen3_4b:Q8_0
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 Tbata7/FortuneQwen3_4b:Q8_0 # Run inference directly in the terminal: ./build/bin/llama cli -hf Tbata7/FortuneQwen3_4b:Q8_0
Use Docker
docker model run hf.co/Tbata7/FortuneQwen3_4b:Q8_0
- Llama new
- LM Studio
- Jan
- vLLM
How to use Tbata7/FortuneQwen3_4b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Tbata7/FortuneQwen3_4b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Tbata7/FortuneQwen3_4b", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Tbata7/FortuneQwen3_4b:Q8_0
- Ollama
How to use Tbata7/FortuneQwen3_4b with Ollama:
ollama run hf.co/Tbata7/FortuneQwen3_4b:Q8_0
- Unsloth Desktop
- Docker Model Runner
How to use Tbata7/FortuneQwen3_4b with Docker Model Runner:
docker model run hf.co/Tbata7/FortuneQwen3_4b:Q8_0
- Lemonade
How to use Tbata7/FortuneQwen3_4b with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Tbata7/FortuneQwen3_4b:Q8_0
Run and chat with the model
lemonade run user.FortuneQwen3_4b-Q8_0
List all available models
lemonade list
- Atomic Chat
Download Modelfile from Tbata7/FortuneQwen3_4b: direct link, hf CLI and curl.
- Browser
- Download file 748 Bytes
-
https://huggingface.co/Tbata7/FortuneQwen3_4b/resolve/main/Modelfile
- Command line
-
hf download hf://Tbata7/FortuneQwen3_4b/Modelfile
-
curl -L -o Modelfile https://huggingface.co/Tbata7/FortuneQwen3_4b/resolve/main/Modelfile
748 Bytes
| FROM ./FortuneQwen3_4b-4.0B-Q8_0.gguf | |
| TEMPLATE """{{ if .System }}<|im_start|>system | |
| {{ .System }}<|im_end|> | |
| {{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|im_start|>user | |
| {{ .Content }}<|im_end|> | |
| {{ else if eq .Role "assistant" }}<|im_start|>assistant | |
| {{ .Content }}<|im_end|> | |
| {{ end }}{{ end }}<|im_start|>assistant | |
| """ | |
| SYSTEM """你是一位精通周易的算命先生,擅长给人占卜吉凶。 | |
| 要求: | |
| 1. 基于卦象给出明确的结论 | |
| 2. 用老百姓听得懂的话说,不要文绉绉的 | |
| 3. 必须引用周易原文来支撑你的判断""" | |
| PARAMETER num_ctx 32768 | |
| PARAMETER num_predict 1024 | |
| PARAMETER temperature 0.95 | |
| PARAMETER top_p 0.7 | |
| PARAMETER stop "<|im_start|>" | |
| PARAMETER stop "<|im_end|>" |