Text Generation
Transformers
Safetensors
Chinese
English
lfm3
tool-calling
function-calling
agent
chinese
conversational
custom_code
Instructions to use whcl412/FinchAI-Rune2-Luna with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use whcl412/FinchAI-Rune2-Luna with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="whcl412/FinchAI-Rune2-Luna", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("whcl412/FinchAI-Rune2-Luna", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("whcl412/FinchAI-Rune2-Luna", trust_remote_code=True, device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use whcl412/FinchAI-Rune2-Luna with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "whcl412/FinchAI-Rune2-Luna" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "whcl412/FinchAI-Rune2-Luna", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/whcl412/FinchAI-Rune2-Luna
- SGLang
How to use whcl412/FinchAI-Rune2-Luna 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 "whcl412/FinchAI-Rune2-Luna" \ --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": "whcl412/FinchAI-Rune2-Luna", "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 "whcl412/FinchAI-Rune2-Luna" \ --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": "whcl412/FinchAI-Rune2-Luna", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use whcl412/FinchAI-Rune2-Luna with Docker Model Runner:
docker model run hf.co/whcl412/FinchAI-Rune2-Luna
Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -16,9 +16,9 @@ tags:
|
|
| 16 |
- lfm3
|
| 17 |
---
|
| 18 |
|
| 19 |
-
#
|
| 20 |
|
| 21 |
-
>
|
| 22 |
> LoRA 微调,专注**工具调用判断力**与**多轮对话稳定性**。
|
| 23 |
>
|
| 24 |
> 相比 v2([`whcl412/FinchAI-Rune2-f16`](https://huggingface.co/whcl412/FinchAI-Rune2-f16)):
|
|
@@ -26,14 +26,14 @@ tags:
|
|
| 26 |
|
| 27 |
**精度:f16(bfloat16 完整权重,3.24 GiB,未量化)**。仓库名不带精度后缀,以此处为准。
|
| 28 |
|
| 29 |
-
(v2,1200 条)
|
| 205 |
- 第一代:[whcl412/FinchAI-Rune1-Preview-v2-f16](https://huggingface.co/whcl412/FinchAI-Rune1-Preview-v2-f16)
|
| 206 |
- 底座:[LiquidAI/LFM3-1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B)
|
|
|
|
| 16 |
- lfm3
|
| 17 |
---
|
| 18 |
|
| 19 |
+
# FinchAI-Rune2-Luna
|
| 20 |
|
| 21 |
+
> FinchAI 系列第 2 代 · **Luna**。底座 [LFM3-1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B),
|
| 22 |
> LoRA 微调,专注**工具调用判断力**与**多轮对话稳定性**。
|
| 23 |
>
|
| 24 |
> 相比 v2([`whcl412/FinchAI-Rune2-f16`](https://huggingface.co/whcl412/FinchAI-Rune2-f16)):
|
|
|
|
| 26 |
|
| 27 |
**精度:f16(bfloat16 完整权重,3.24 GiB,未量化)**。仓库名不带精度后缀,以此处为准。
|
| 28 |
|
| 29 |
+

|
| 30 |
|
| 31 |
> 图中数据:Rune1 为 7 项探针 × 5 次抽样,Rune2 为 14 项探针 × 2 次抽样,
|
| 32 |
> 各维度取该维度下所有探针的平均通过率。**两代口径不完全一致,仅供参考趋势。**
|
| 33 |
|
| 34 |
| | |
|
| 35 |
|---|---|
|
| 36 |
+
| **本仓库** | `FinchAI-Rune2-Luna` |
|
| 37 |
| **精度** | **f16 / bfloat16 完整权重**(3.24 GiB,未量化、未蒸馏) |
|
| 38 |
| **能力范围** | 纯文本(**不含视觉**) |
|
| 39 |
| **上下文窗口** | 262144(256K),与底座一致;**但只在 1024 token 内训练过** |
|
|
|
|
| 97 |
```python
|
| 98 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 99 |
|
| 100 |
+
model_id = "whcl412/FinchAI-Rune2-Luna"
|
| 101 |
tok = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
|
| 102 |
model = AutoModelForCausalLM.from_pretrained(
|
| 103 |
model_id, dtype="bfloat16", device_map="auto", trust_remote_code=True)
|
|
|
|
| 200 |
|
| 201 |
## 七、项目信息
|
| 202 |
|
| 203 |
+
- 训练脚本与数据:[GitHub · hwc-cell/FinchAI-Rune2-Luna](https://github.com/hwc-cell/FinchAI-Rune2-Luna)
|
| 204 |
- 上一版:[whcl412/FinchAI-Rune2-f16](https://huggingface.co/whcl412/FinchAI-Rune2-f16)(v2,1200 条)
|
| 205 |
- 第一代:[whcl412/FinchAI-Rune1-Preview-v2-f16](https://huggingface.co/whcl412/FinchAI-Rune1-Preview-v2-f16)
|
| 206 |
- 底座:[LiquidAI/LFM3-1.7B](https://huggingface.co/LiquidAI/LFM3-1.7B)
|