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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,44 +1,44 @@
|
|
| 1 |
-
# FortuneQwen3_4b
|
| 2 |
-
|
| 3 |
-
这是一个基于 Qwen3 架构微调的 4B 参数模型,专门用于算命/占卜(Fortune Telling)任务。
|
| 4 |
-
|
| 5 |
-
## 模型信息 (Model Information)
|
| 6 |
-
|
| 7 |
-
- **基础架构 (Base Architecture)**:
|
| 8 |
-
- **参数量 (Parameters)**:
|
| 9 |
-
- **隐藏层维度 (Hidden Size)**: 2560
|
| 10 |
-
- **层数 (Layers)**: 36
|
| 11 |
-
- **注意力头数 (Attention Heads)**: 32
|
| 12 |
-
- **上下文长度 (Context Window)**: 32768 (32k)
|
| 13 |
-
- **词表大小 (Vocab Size)**: 151936
|
| 14 |
-
|
| 15 |
-
## 使用方法 (Usage)
|
| 16 |
-
|
| 17 |
-
### Ollama
|
| 18 |
-
|
| 19 |
-
本目录包含了 Ollama 的 `Modelfile`,可以直接导入使用。
|
| 20 |
-
|
| 21 |
-
1. 确保已安装 [Ollama](https://ollama.com/)。
|
| 22 |
-
2. 在本目录下运行以下命令创建模型:
|
| 23 |
-
|
| 24 |
-
```bash
|
| 25 |
-
ollama create FortuneQwen3_4b -f Modelfile
|
| 26 |
-
```
|
| 27 |
-
|
| 28 |
-
3. 运行模型:
|
| 29 |
-
|
| 30 |
-
```bash
|
| 31 |
-
ollama run FortuneQwen3_4b
|
| 32 |
-
```
|
| 33 |
-
|
| 34 |
-
## 文件说明 (File Descriptions)
|
| 35 |
-
|
| 36 |
-
- `model-*.safetensors`: 模型权重文件,包含实际的神经网络参数。
|
| 37 |
-
- `tokenizer.json` / `vocab.json` / `merges.txt`: 分词器文件,用于将文本转换为模型可理解的 token。
|
| 38 |
-
- `config.json`: 模型配置文件,定义了网络结构和超参数。
|
| 39 |
-
- `Modelfile`: Ollama 模型定义文件(由 LLaMA-Factory 生成),定义了对话模板和推理参数。
|
| 40 |
-
- `generation_config.json`: 生成配置,控制推理使得的采样参数(如 temperature 等)。
|
| 41 |
-
|
| 42 |
-
## 来源 (Source)
|
| 43 |
-
|
| 44 |
-
该模型
|
|
|
|
| 1 |
+
# FortuneQwen3_4b
|
| 2 |
+
|
| 3 |
+
这是一个基于 Qwen3 架构微调的 4B 参数模型,专门用于算命/占卜(Fortune Telling)任务。
|
| 4 |
+
|
| 5 |
+
## 模型信息 (Model Information)
|
| 6 |
+
|
| 7 |
+
- **基础架构 (Base Architecture)**: Qwen3:4b
|
| 8 |
+
- **参数量 (Parameters)**: 4B
|
| 9 |
+
- **隐藏层维度 (Hidden Size)**: 2560
|
| 10 |
+
- **层数 (Layers)**: 36
|
| 11 |
+
- **注意力头数 (Attention Heads)**: 32
|
| 12 |
+
- **上下文长度 (Context Window)**: 32768 (32k)
|
| 13 |
+
- **词表大小 (Vocab Size)**: 151936
|
| 14 |
+
|
| 15 |
+
## 使用方法 (Usage)
|
| 16 |
+
|
| 17 |
+
### Ollama
|
| 18 |
+
|
| 19 |
+
本目录包含了 Ollama 的 `Modelfile`,可以直接导入使用。
|
| 20 |
+
|
| 21 |
+
1. 确保已安装 [Ollama](https://ollama.com/)。
|
| 22 |
+
2. 在本目录下运行以下命令创建模型:
|
| 23 |
+
|
| 24 |
+
```bash
|
| 25 |
+
ollama create FortuneQwen3_4b -f Modelfile
|
| 26 |
+
```
|
| 27 |
+
|
| 28 |
+
3. 运行模型:
|
| 29 |
+
|
| 30 |
+
```bash
|
| 31 |
+
ollama run FortuneQwen3_4b
|
| 32 |
+
```
|
| 33 |
+
|
| 34 |
+
## 文件说明 (File Descriptions)
|
| 35 |
+
|
| 36 |
+
- `model-*.safetensors`: 模型权重文件,包含实际的神经网络参数。
|
| 37 |
+
- `tokenizer.json` / `vocab.json` / `merges.txt`: 分词器文件,用于将文本转换为模型可理解的 token。
|
| 38 |
+
- `config.json`: 模型配置文件,定义了网络结构和超参数。
|
| 39 |
+
- `Modelfile`: Ollama 模型定义文件(由 LLaMA-Factory 生成),定义了对话模板和推理参数。
|
| 40 |
+
- `generation_config.json`: 生成配置,控制推理使得的采样参数(如 temperature 等)。
|
| 41 |
+
|
| 42 |
+
## 来源 (Source)
|
| 43 |
+
|
| 44 |
+
该模型是由 [LLaMA-Factory](https://github.com/hiyouga/LLaMA-Factory) 框架进行微调导出的。
|