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
Upload 2 files
Browse files- .gitattributes +1 -0
- FortuneQwen3_4b-4.0B-Q8_0.gguf +3 -0
- Modelfile +22 -8
.gitattributes
CHANGED
|
@@ -34,3 +34,4 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
tokenizer.json filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
FortuneQwen3_4b-4.0B-Q8_0.gguf filter=lfs diff=lfs merge=lfs -text
|
FortuneQwen3_4b-4.0B-Q8_0.gguf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e20e14bcee37bb2bbd9fe4b4a4e166e3693033da08e80fa723ca4c0bac0635be
|
| 3 |
+
size 4280401088
|
Modelfile
CHANGED
|
@@ -1,11 +1,25 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
PARAMETER
|
| 11 |
-
PARAMETER
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ./FortuneQwen3_4b-4.0B-Q8_0.gguf
|
| 2 |
|
| 3 |
+
TEMPLATE """{{ if .System }}<|im_start|>system
|
| 4 |
+
{{ .System }}<|im_end|>
|
| 5 |
+
{{ end }}{{ range .Messages }}{{ if eq .Role "user" }}<|im_start|>user
|
| 6 |
+
{{ .Content }}<|im_end|>
|
| 7 |
+
{{ else if eq .Role "assistant" }}<|im_start|>assistant
|
| 8 |
+
{{ .Content }}<|im_end|>
|
| 9 |
+
{{ end }}{{ end }}<|im_start|>assistant
|
| 10 |
+
"""
|
| 11 |
|
| 12 |
+
SYSTEM """你是一位精通周易的算命先生,擅长给人占卜吉凶。
|
| 13 |
+
要求:
|
| 14 |
+
1. 基于卦象给出明确的结论
|
| 15 |
+
2. 用老百姓听得懂的话说,不要文绉绉的
|
| 16 |
+
3. 必须引用周易原文来支撑你的判断"""
|
| 17 |
|
| 18 |
+
PARAMETER num_ctx 32768
|
| 19 |
+
PARAMETER num_predict 1024
|
| 20 |
+
PARAMETER temperature 0.95
|
| 21 |
+
PARAMETER top_p 0.7
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
PARAMETER stop "<|im_start|>"
|
| 25 |
+
PARAMETER stop "<|im_end|>"
|