Instructions to use wonchandev/Soonlife-Qwen3.5-9B-v2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use wonchandev/Soonlife-Qwen3.5-9B-v2b with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="wonchandev/Soonlife-Qwen3.5-9B-v2b") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("wonchandev/Soonlife-Qwen3.5-9B-v2b") model = AutoModelForMultimodalLM.from_pretrained("wonchandev/Soonlife-Qwen3.5-9B-v2b", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = processor.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(processor.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use wonchandev/Soonlife-Qwen3.5-9B-v2b with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "wonchandev/Soonlife-Qwen3.5-9B-v2b" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "wonchandev/Soonlife-Qwen3.5-9B-v2b", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/wonchandev/Soonlife-Qwen3.5-9B-v2b
- SGLang
How to use wonchandev/Soonlife-Qwen3.5-9B-v2b 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 "wonchandev/Soonlife-Qwen3.5-9B-v2b" \ --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": "wonchandev/Soonlife-Qwen3.5-9B-v2b", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'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 "wonchandev/Soonlife-Qwen3.5-9B-v2b" \ --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": "wonchandev/Soonlife-Qwen3.5-9B-v2b", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use wonchandev/Soonlife-Qwen3.5-9B-v2b with Docker Model Runner:
docker model run hf.co/wonchandev/Soonlife-Qwen3.5-9B-v2b
Soonlife-Qwen3.5-9B-v2b
๋์กฐ ์คํ(v2b)์ ๋๋ค. ์ด์ ๋ชจ๋ธ์ Soonlife-Qwen3.5-9B-v2-FP8(v2)์ ๋๋ค. v2์ ๊ฐ์ ๋ฐ์ดํฐ๋ก epoch ๋ง 1.5 โ 1.0์ผ๋ก ์ค์์ต๋๋ค. ์์ด์ ํธ ๊ธฐ๋ก ๊ฒ์ฆ ์์ค์ v2๋ณด๋ค ๋ฎ์์ง๋ง(0.2608 vs 0.2709) ์์ด์ ํธ ํ๋์ v1 ์ชฝ์ผ๋ก ๋์๊ฐ์ต๋๋ค โ ์๋ ํ๊ฐ ์ ์ ๋ณด์ธ์.
wonchandev/Soonlife-Qwen3.5-9B-v2b-LoRA ์ด๋ํฐ๋ฅผ Qwen/Qwen3.5-9B์ ๋ณํฉํ bf16 ๋ชจ๋ธ์
๋๋ค(๋น์ ํ์ ํฌํจ, Qwen3_5ForConditionalGeneration).
์๋น์ wonchandev/Soonlife-Qwen3.5-9B-v2b-FP8๋ฅผ ์ฐ๊ณ , ์ด ๋ ํฌ๋ ๋ค๋ฅธ ์์ํ(GGUFยทAWQ ๋ฑ)๋ ์ถ๊ฐ ํ์ต์ ์๋ณธ์ผ๋ก ์๋๋ค.
- wonchandev/Soonlife-Qwen3.5-9B-v2b-FP8 โ FP8 dynamic โ ์ด์ ์๋น์ฉ
- wonchandev/Soonlife-Qwen3.5-9B-v2b โ ๋ณํฉ bf16 โ ๋ค๋ฅธ ์์ํ์ ์๋ณธ
- wonchandev/Soonlife-Qwen3.5-9B-v2b-LoRA โ LoRA ์ด๋ํฐ + ํ์ต ๊ธฐ๋ก
from transformers import AutoModelForImageTextToText, AutoProcessor
model = AutoModelForImageTextToText.from_pretrained("wonchandev/Soonlife-Qwen3.5-9B-v2b", dtype="bfloat16", device_map="auto")
processor = AutoProcessor.from_pretrained("wonchandev/Soonlife-Qwen3.5-9B-v2b")
ํ๊ฐ
๋ฐ์ดํฐ์
test ๋ถํ 314๊ฐ ์ง๋ฌธ(ํ์ต์ ์ฐ์ง ์์)์ RAG ํ์ ๋น๊ต์
๋๋ค. ๊ฒ์ ๊ฒฐ๊ณผ๋ฅผ ๊ณ ์ ํด ๋ฃ๊ณ ๋ชจ๋ธ ์ฐจ์ด๋ง ๋ด
๋๋ค.
์ด์๊ณผ ๊ฐ์ vLLM ์ค์ (FP8, temperature 0.1, max_tokens 4096)์์ ๋ต๋ณ ๋ผ์ด๋์ฒ๋ผ ์๊ฐ(thinking)์ ๋๊ณ ๋ฐ์์ต๋๋ค.
base ๋ ์๋ ์ฐ๋ RedHatAI/Qwen3.5-9B-FP8-dynamic, teacher(27B) ๋ ํ์ต ๋ฐ์ดํฐ์ Qwen3.8-27B ๋ต๋ณ์
๋๋ค.
| ์งํ | teacher(27B) | base | lora-v1 | lora-v2 | lora-v2b |
|---|---|---|---|---|---|
| ๋น ๋ต๋ณ โ | 0.0% | 0.0% | 0.0% | 0.0% | 0.0% |
| '๋ชป ์ฐพ์'์ผ๋ก ์์ โ | 7.3% | 3.5% | 6.7% | 9.2% | 8.0% |
| ์๋ฃ์ ์๋ ์ซ์๊ฐ ์๋ ๋ต๋ณ โ | 0.0% | 2.5% | 1.0% | 1.3% | 1.9% |
| ์๋ฃ์ ์๋ ๋งํฌ๊ฐ ์๋ ๋ต๋ณ โ | 1.6% | 3.8% | 1.9% | 2.9% | 1.3% |
| ์๋ฃ์ ์๋ ๊ทธ๋ฆผ์ด ์๋ ๋ต๋ณ โ | 0.0% | 1.6% | 0.6% | 0.6% | 0.0% |
| ๊ทธ๋ฆผ์ ๋ฃ์ ๋ต๋ณ โ | 11.5% | 11.1% | 9.9% | 10.5% | 9.6% |
| Teacher ์ซ์ ์ฌํ์จ โ | 1.00 | 0.61 | 0.80 | 0.81 | 0.79 |
| ์ซ์ ๋์ด์ฐ๊ธฐ('4 ์') โ | 0.0% | 65.9% | 0.3% | 0.3% | 0.3% |
| ์ฝ๋ยทHTML ์ถ๋ ฅ โ | 0.0% | 10.2% | 0.0% | 0.0% | 0.3% |
| ์ด๋ชจ์ง โ | 13.7% | 15.9% | 14.0% | 12.7% | 13.7% |
| ๋ต๋ณ ๊ธธ์ด(์ค์๊ฐ) | 868 | 921 | 802 | 832 | 842 |
| ๊ธธ์ด ํ๋์์ ์๋ฆผ โ | โ | 0.0% | 0.0% | 0.0% | 0.3% |
| ์์ ์๊ฐ(์ค์๊ฐ, ์ด) โ | โ | 14 | 11 | 11 | 11 |
- RAG ํ์์ ์ธ LoRA๊ฐ ๋น์ทํฉ๋๋ค(Teacher ์ซ์ ์ฌํ์จ 0.79~0.81). v2b๋ ์๋ฃ์ ์๋ ๋งํฌ(1.3%)ยท๊ทธ๋ฆผ(0%)์ด ๊ฐ์ฅ ์ ์ต๋๋ค.
- v1ยทv2์ ์๋ ํดํ ๋ฐ๋ณต์ด 1๊ฑด ์์ต๋๋ค(ํ๋ฅผ ๊ทธ๋ฆฌ๋ค ๊ฐ์ ๊ธฐํธ๋ฅผ 4096ํ ํฐ ํ๋๊น์ง ๋ฐ๋ณต). ํ์ '์ฝ๋ยทHTML ์ถ๋ ฅ'๊ณผ '๊ธธ์ด ํ๋์์ ์๋ฆผ' 0.3%๊ฐ ์ด 1๊ฑด์ ๋๋ค.
์์ด์ ํธ ํ์
test ๋ถํ ์ ์ต๊ทผ ๊ณต์งยท๊ท์ ์ง๋ฌธ 92๊ฐ๋ฅผ ์ด์ ์ฑ์ ์์ด์ ํธ ํ๋ฆ(๊ฒ์ยท๊ณต์ง ์ด๋ ๋๊ตฌ, ์ฒซ ๋ผ์ด๋๋ง ์๊ฐ, ์ฑ ํ์ง ๊ฒ์ฌ)์ ๊ทธ๋๋ก ๋๋ ธ์ต๋๋ค. ๋ชจ๋ธ์ด ์ง์ ๋๊ตฌ๋ฅผ ๊ณจ๋ผ ์๋ฃ๋ฅผ ์ฐพ์ผ๋ฏ๋ก ๊ฒ์๋ถํฐ ๋ต๋ณ๊น์ง ์ ๊ณผ์ ์ ๋ด ๋๋ค.
| ์งํ | lora-v1 | lora-v2 | lora-v2b |
|---|---|---|---|
| ๋น ๋ต๋ณ โ | 0.0% | 0.0% | 0.0% |
| '๋ชป ์ฐพ์'์ผ๋ก ์์ โ | 16.3% | 16.3% | 19.6% |
| ์๋ฃ์ ์๋ ์ซ์๊ฐ ์๋ ๋ต๋ณ โ | 1.1% | 0.0% | 3.3% |
| ์๋ฃ์ ์๋ ๋งํฌ๊ฐ ์๋ ๋ต๋ณ โ | 0.0% | 0.0% | 0.0% |
| ์๋ฃ์ ์๋ ๊ทธ๋ฆผ์ด ์๋ ๋ต๋ณ โ | 0.0% | 0.0% | 0.0% |
| ๊ทธ๋ฆผ์ ๋ฃ์ ๋ต๋ณ โ | 9.8% | 9.8% | 7.6% |
| ์ซ์ ๋์ด์ฐ๊ธฐ('4 ์') โ | 0.0% | 0.0% | 0.0% |
| ์ฝ๋ยทHTML ์ถ๋ ฅ โ | 0.0% | 0.0% | 0.0% |
| ์ด๋ชจ์ง โ | 12.0% | 12.0% | 12.0% |
| ๋ต๋ณ ๊ธธ์ด(์ค์๊ฐ) | 624 | 712 | 684 |
| ๋๊ตฌ ์์ด ๋ตํจ โ | 1.1% | 0.0% | 0.0% |
| ๋๊ตฌ ํธ์ถ ์(ํ๊ท ) | 5.29 | 4.34 | 5.08 |
| ๋ผ์ด๋(ํ๊ท ) | 5.74 | 4.53 | 5.39 |
| ์๋ ๊ณต์ง ์ด๋ โ | 28.3% | 30.4% | 28.3% |
| ํ์ง ๊ฒ์ฌ ํ ๊ณ ์ณ ์ โ | 27.2% | 17.4% | 25.0% |
| ๊ธธ์ด ํ๋์์ ์๋ฆผ โ | 0.0% | 0.0% | 0.0% |
| ์์ ์๊ฐ(์ค์๊ฐ, ์ด) โ | 35 | 32 | 37 |
- ์ฌ์์ฑ 25.0%ยท๋๊ตฌ ํธ์ถ 5.08ยท๋ผ์ด๋ 5.39ยท์ค๋ณต ์กฐํ ์ฐจ๋จ 5.4%๋ก v2(17.4% ยท 4.34 ยท 4.53 ยท 3.3%)๋ณด๋ค v1(27.2% ยท 5.29 ยท 5.74 ยท 10.9%)์ ๊ฐ๊น์ต๋๋ค. ๊ฐ์ ๋ฐ์ดํฐ์์ epoch ๋ง ์ค์๋๋ v2์ ๊ฐ์ ๋๋ถ๋ถ์ด ์ฌ๋ผ์ก์ต๋๋ค. ๋ค๋ง 92๋ฌธํญ ์ง์ง์ ๊ฒ์ ์์ v2์์ ์ฐจ์ด๋ ์ ์ํ์ง ์์ต๋๋ค(์ฌ์์ฑ p=0.19, ์ค๋ณต ์กฐํ ์ฐจ๋จ p=0.69).
- '๋ชป ์ฐพ์' 19.6%, ์๋ฃ์ ์๋ ์ซ์ 3.3%๋ก ์ธ ๋ชจ๋ธ ์ค ๊ฐ์ฅ ๋์ต๋๋ค. ๋ค๋ง 92๊ฐ ํ๋ณธ์ด๋ผ ๋ช ๊ฑด ์ฐจ์ด(๋ชป ์ฐพ์ v2 15๊ฑด ยท v2b 18๊ฑด)๋ ์ก์์ผ ์ ์์ต๋๋ค.
ํ์ต
Teacher(Qwen3.8-27B)๊ฐ ๊ฐ์ RAG ํ๋กฌํํธยท๋๊ตฌ๋ก ๋ง๋ ๋ต๋ณ๊ณผ ์์ด์ ํธ ๊ธฐ๋ก์ ํ์(Qwen/Qwen3.5-9B)์ SFT ๋ก ์ฆ๋ฅํ์ต๋๋ค. ์ด์์ ์ฒซ ๋ผ์ด๋๋ง ์๊ฐํ๊ณ ์ด์ ์๊ฐ์ ๋นผ๊ณ ๋ค์ ๋ผ์ด๋๋ฅผ ๋ณด๋ด๋ฏ๋ก, ์์ด์ ํธ ๊ธฐ๋ก ํ๋๋ฅผ ๋ ์ํ๋ก ๋๋ ํ์ต ์ ๋ ฅ์ ์ด์ ์ ๋ ฅ๊ณผ ๊ฐ๊ฒ ๋ง์ท์ต๋๋ค.
| ๋ฐ์ดํฐ | ์๋ณธ ์ | ํ์ต ์ํ | ํ ํฐ | ์์ค์ ๊ฑฐ๋ ๊ณณ |
|---|---|---|---|---|
| answers (RAG ํ์) | 3,000 | 3,000 | 24.6M | ์ต์ข ๋ต๋ณ |
| traces ยท think (์ฒซ ๋ผ์ด๋, ์๊ฐ ํฌํจ) | 716 ร 2 (๊ฐํ 148๊ฐ๋ ร 4) | 1,728 | 23.8M | ์ฒซ ๋ผ์ด๋ ์๊ฐ + ๋๊ตฌ ํธ์ถ |
| traces ยท full (์๊ฐ ์ ๊ฑฐ) | 1,604 | 33.0M | ๋๋จธ์ง ๋๊ตฌ ํธ์ถ + ์ต์ข ๋ต๋ณ |
- ํฉ๊ณ 6,332์ค ยท 81.4M ํ ํฐ ์ค ์์ค ํ ํฐ 2.99M. ๊ทธ๋ฆผ์ด ๋ ๊ธฐ๋ก 21๊ฐ๋ ๊ทธ๋ฆผ์
[๊ทธ๋ฆผ]์๋ฆฌ ํ ์คํธ๋ก ๋ฐ๊ฟ ๋ฃ์๊ณ , 32K ํ ํฐ ์ด๊ณผ ์ํ์ ์๋ฅด์ง ์๊ณ ๋บ์ต๋๋ค. - ๊ฐํ: ๊ฒ์์ ๋ฐ๊ฟ ๋ค์ ์ฐพ์๋ธ ๊ธฐ๋ก(ํ๋ณต)๊ณผ ์ฒ์๋ถํฐ ์ข ๋ฃ๋ฅผ ํ์ํ ๊ธฐ๋ก์ ๋ ๋ง์ด ๋ฃ์์ต๋๋ค.
- ๋ฐ์ดํฐ์ ์ test ๋ถํ ์ ํ์ต์ ์ฐ์ง ์์์ต๋๋ค(ํ๊ฐ์ฉ).
- LoRA r=32, alpha=32, dropout=0.0 ยท ๋์:
q_proj,k_proj,v_proj,o_proj,gate_proj,up_proj,down_proj,in_proj_qkv,in_proj_z,out_proj(์ธ์ด ๋ชจ๋ธ์ full attention ยท MLP ยท Gated DeltaNet ํฌ์, ๋น์ ํ์ ์ ์ธ) - bf16 LoRA (Unsloth) ยท 1 epoch ยท lr 0.0001 cosine ยท ์คํจ ๋ฐฐ์น 16 ยท ์ต๋ 32,768 ํ ํฐ ยท H100 2.8์๊ฐ
- ํ์ต ์์ค(ํ๊ท ) 0.2448 ยท ์ต์ข ๊ฒ์ฆ ์์ค answers 0.2739 / traces 0.2608
ํ๊ณ
- ์์ฒํฅ๋ํ๊ต ๊ณต์งยท๊ท์ RAG ์ฑ๋ด(์๋ผ์ดํ) ์ ์ฉ์ ๋๋ค. ํ์ต์ ์ด ์์คํ ํ๋กฌํํธยท๋๊ตฌ ํ์ ๋ฐ์์๋ ์๋ณธ Qwen/Qwen3.5-9B ๋ณด๋ค ๋์์ง๋ค๋ ๋ณด์ฅ์ด ์์ต๋๋ค.
- ๋น์ ํ์์ MTP(์ถ์ธก ๋์ฝ๋ฉ) ๊ฐ์ค์น๋ ํ์ตํ์ง ์๊ณ ์๋ณธ ๊ทธ๋๋ก์ ๋๋ค. ์ถ์ธก ๋์ฝ๋ฉ์ ์ผ๋ฉด ์๋ฝ๋ฅ ์ด ์๋ณธ๋ณด๋ค ์กฐ๊ธ ๋ฎ์ ์ ์์ต๋๋ค.
- Downloads last month
- 64