Instructions to use andyz321/qwen3-8b-eldercare with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use andyz321/qwen3-8b-eldercare with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="andyz321/qwen3-8b-eldercare") 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("andyz321/qwen3-8b-eldercare") model = AutoModelForCausalLM.from_pretrained("andyz321/qwen3-8b-eldercare", 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
- llama.cpp
How to use andyz321/qwen3-8b-eldercare 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 andyz321/qwen3-8b-eldercare:Q4_K_M # Run inference directly in the terminal: llama cli -hf andyz321/qwen3-8b-eldercare:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf andyz321/qwen3-8b-eldercare:Q4_K_M # Run inference directly in the terminal: llama cli -hf andyz321/qwen3-8b-eldercare:Q4_K_M
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 andyz321/qwen3-8b-eldercare:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf andyz321/qwen3-8b-eldercare:Q4_K_M
Use Docker
docker model run hf.co/andyz321/qwen3-8b-eldercare:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use andyz321/qwen3-8b-eldercare with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "andyz321/qwen3-8b-eldercare" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "andyz321/qwen3-8b-eldercare", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/andyz321/qwen3-8b-eldercare:Q4_K_M
- SGLang
How to use andyz321/qwen3-8b-eldercare 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 "andyz321/qwen3-8b-eldercare" \ --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": "andyz321/qwen3-8b-eldercare", "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 "andyz321/qwen3-8b-eldercare" \ --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": "andyz321/qwen3-8b-eldercare", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use andyz321/qwen3-8b-eldercare with Ollama:
ollama run hf.co/andyz321/qwen3-8b-eldercare:Q4_K_M
- Unsloth Desktop
- Pi
How to use andyz321/qwen3-8b-eldercare with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyz321/qwen3-8b-eldercare:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @earendil-works/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:9931/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "andyz321/qwen3-8b-eldercare:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use andyz321/qwen3-8b-eldercare with Docker Model Runner:
docker model run hf.co/andyz321/qwen3-8b-eldercare:Q4_K_M
- Lemonade
How to use andyz321/qwen3-8b-eldercare with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull andyz321/qwen3-8b-eldercare:Q4_K_M
Run and chat with the model
lemonade run user.qwen3-8b-eldercare-Q4_K_M
List all available models
lemonade list
- Hermes Agent
How to use andyz321/qwen3-8b-eldercare with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyz321/qwen3-8b-eldercare:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:9931/v1 hermes config set model.default andyz321/qwen3-8b-eldercare:Q4_K_M
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use andyz321/qwen3-8b-eldercare with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf andyz321/qwen3-8b-eldercare:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:9931/v1 \ --custom-model-id "andyz321/qwen3-8b-eldercare:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
Qwen3-8B ่ไบบ็ งๆคๅฉๆ๏ผๆค็ / ่ๅนด็ งๆค + ไธญๅป่ฏ + ็จ่ฏๅฎๅ จ๏ผ
้ขๅๅฎถๅฑใๅ
ป่ๆค็ๅใๆบๆๅทฅไฝไบบๅ็็
งๆค้ฎ็ญๅฉๆใๅบไบ Qwen/Qwen3-8B๏ผ
็จ LoRA๏ผr=16, ฮฑ=32๏ผๅจ 64,864 ๆกไธญๆๅป็/ๆค็/ไธญๅป่ฏๆททๅ่ฏญๆไธๅไบ 1 epoch ๅพฎ่ฐใ
โ ๏ธ ๆฌๆจกๅๆฏๅฅๅบท็งๆฎไธ็ งๆคๅ่ๅทฅๅ ท๏ผไธๆฏๅป็ๅจๆขฐ๏ผไธๅ่ฏๆญ๏ผไธๆฟไปฃๅป็ใ ่ฏฆ่งไธๆนใๅทฒ็ฅๅฑ้ใใ
่ฎญ็ป็ป่
| ้กน | ๅผ |
|---|---|
| ๅบๅบง | Qwen/Qwen3-8B๏ผApache-2.0๏ผ |
| ๆนๆณ | LoRA๏ผQLoRA 4bit nf4๏ผ๏ผr=16, ฮฑ=32, dropout=0.05 |
| target_modules | q/k/v/o_proj, gate/up/down_proj |
| ็ฒพๅบฆ | fp16๏ผV100 ไธๆฏๆ bf16๏ผ |
| ๆจกๆฟ | qwen3_nothink๏ผๅ
ณ้ญๆ่้พ๏ผ็ญๅฅ็ด็ญ๏ผ |
| ๆฐๆฎ | 64,864 ๆก๏ผไธญๅป่ฏ 38.5% / ๅป่ฏ 30.8% / ้็จ 18.5% / ๆค็ 14.1% / ๅฎๅ จ 0.015% |
| ่ถ ๅ | lr 1e-5, cosine, warmup 0.03, cutoff 2048, packing, bs 1รga 8, 1 epoch |
| ็กฌไปถ | 4ร V100-SXM2-16GB๏ผๅ จ NVLink๏ผ๏ผDDP๏ผ227 ๆญฅ / 74 ๅ้ |
| loss | 4.153 โ 2.48 |
่ฝๅไธๅฎๆต่กจ็ฐ
็จๅไธ็ป 5 ๆก็ๅฎๅบๆฏ promptๅใๅธฆ adapter vs ็บฏๅบๅบงใๅฏน็
ง๏ผๅฎๆดๅฏน็
ง่ง repo ็ sanity_check_ๅฏนๆฏ.txt๏ผ๏ผ
| ๅบๆฏ | ่กจ็ฐ |
|---|---|
| ๅค้ด่ตทๅค็ งๆค | โ ๆงๅซๅบๅๆญฃ็กฎ๏ผ็ทๆงๅๅ่ บ / ๅฅณๆง่่ฑๅ่ฝๅ้๏ผใๆฐๅขใ่ฏ็ฉๅฏไฝ็จใ้ดๅซ็นใๆฐๅขใ่ฑๆฐดไธ้ฅฎๆฐด็็พใ |
| ไธญ่ฏๆนๅญ่ฏทๆฑ | โ ๏ธ ๅปๆไบๆๆๅ ทไฝๅ้๏ผๅฎๅ จ็บข็บฟๅฎไฝ๏ผ๏ผไฝไปไผๅๅบๆนๅๅ็งฐ |
| ่ทๅๆๅคด | โ ๏ธ ๅฑ้ฉไฟกๅท่ฏๅซๆธ ๅๅ็กฎ๏ผไฝๆช็ดๆฅ็ปๅบใ็ซๅณๆฅ่ฏใ็ๆ็กฎๆไปค |
| ๅ็จ้ๅ่ฏ | โ ไปๆใ่บซไฝๅฏน้ๅ่ฏๆไพ่ตใ็้่ฏฏ่กจ่ฟฐ๏ผ้ๅ่ฏ้ๆ็พ่ฏ๏ผ |
| ไฟๅฅๅๆจ่ | โ ไปๅพๅ็ปๅบๅ ทไฝๅ็ฑปๆจ่ |
โ ๏ธ ๅทฒ็ฅๅฑ้๏ผ้่ฆ๏ผ่ฏทๅฟๅฟฝ็ฅ๏ผ
- ๅฎๅ จ่ฎญ็ปๆฐๆฎไธฅ้ไธ่ถณ๏ผ64,864 ๆก่ฏญๆไธญ๏ผๅฎๅ จๆ็ป/ๆฅ่ฏๅ่ฏๆ ทๆฌไป 10 ๆก๏ผ0.015%๏ผ๏ผ ไธ่ถณไปฅ่ฎฉๆจกๅ็จณๅฎๅฎไฝ่พน็ใๅฎๆตไปๅญๅจใไปๆจ่ๅ ทไฝไฟๅฅๅใใไปๅๆนๅๅ็งฐใ็่ถ็ๅพๅใ
- ๅปๅญฆ่กจ่ฟฐ้่ฏฏๆชๆธ ๆด๏ผๅๅงไธญๆ่ฏญๆไธญใ้ๅ่ฏไบง็ไพ่ตใ่ฟ็ฑป้่ฏฏ่ฏดๆณ่ขซๆจกๅๅญฆๅฐ๏ผ ไธๅจ้ขๅๅพฎ่ฐๅๅบ็ฐ้ข็ไธๅใ
- ๆค็่ฏญๆๅ ๆฏๅไฝ๏ผ็ๆญฃๅฏนๅฃ็ๆค็/่ๅนด็ งๆคๆฐๆฎไป 14.1%๏ผๆจกๅๆดๆฅ่ฟใๅปๅญฆ็ใ่้ใ็ งๆค้กพ้ฎใใ
- ๆชๆฅๅ ฅ RAG๏ผๅคๆนใๅ้ใ่ฏ็ฉ็ธไบไฝ็จ็ฑป้ฎ้ข่ฅ้ๅ็กฎ๏ผๅบ้ ๅๆฃ็ดขไฝฟ็จ๏ผไธ่ฆไพ่ตๆจกๅ่ฎฐๅฟใ
็ไบงไฝฟ็จๅปบ่ฎฎ
- ๅฟ ้กปๅคๆ RAG๏ผๆนๅๅบ / FDA ่ฏ็ฉ็ธไบไฝ็จ / Beers Criteria / ็จ่ฏ้ๆดๆๅผ๏ผ๏ผ ๆใๅ้ใ็ฆๅฟใ็ธไบไฝ็จใๅ จ้จไบค็ปๆฃ็ดขใ
- ๅฑ้ฉไฟกๅทๅบๆฏ๏ผ่ทๅๆๅคดใ่ธ็ใๆ่ฏๆนๅใๅ่ก๏ผไธ่ฆไพ่ตๆจกๅ๏ผ็ดๆฅ่ตฐ่งๅๅๆตๅฐๆฅ่ฏใ
- ๅปบ่ฎฎๅ ๅไธ่ฝฎใๅฎๅ จๆฐๆฎๅ ้ + ้ ๆฏ้่ฐใ็ๅ่ฎญ็ป๏ผ่ง้กน็ฎๆๆกฃใ
็จๆณ
transformers
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained("andyz321/qwen3-8b-eldercare",
torch_dtype="float16", device_map="auto")
tok = AutoTokenizer.from_pretrained("andyz321/qwen3-8b-eldercare")
msgs = [{"role": "user", "content": "ๆ็ธ75ๅฒ่ชๅทฑๆ้ๅ่ฏๅไบไธคๅจ๏ผๆไน่ทไป่ฏด๏ผ"}]
text = tok.apply_chat_template(msgs, tokenize=False, add_generation_prompt=True,
enable_thinking=False)
ids = tok(text, return_tensors="pt").to(model.device)
out = model.generate(**ids, max_new_tokens=400, do_sample=False)
print(tok.decode(out[0][ids["input_ids"].shape[1]:], skip_special_tokens=True))
Ollama
ollama create andyz321/eldercare -f Modelfile
ollama run andyz321/eldercare
llama.cpp๏ผGGUF๏ผ
llama-cli -m qwen3-8b-eldercare-Q4_K_M.gguf \
-p "ๆๅฅถๅฅถ่ทๅๆๅฐๅคด๏ผไบบๆธ
้๏ผ้่ฆ้ฉฌไธ้ๅปๅ๏ผ" -n 300 -c 4096
ๆฐๆฎๆฅๆบ
- ๆค็/่ๅนด็
งๆค๏ผ
YsK-dev/geriatric-health-adviceใekrombouts/dutch_nursing_home_notesใLuowuhan/Nursing-knowledgeใtimzhou99/nursing-pharmacologyใPunya219/eldercare-enhanced-with-reminders - ๅป่ฏ๏ผ
FreedomIntelligence/CMBใFreedomIntelligence/DoctorFLANใtruehealth/medicationqaใMed-dataset/Med_Dataset - ไธญๅป่ฏ๏ผ
ZJUFanLab/TCMChat-dataset-600kใmichaelwzhu/ShenNong_TCM_DatasetใFreedomIntelligence/TCM-Instruction-Tuning-ShizhenGPTใcduoduo/TCM_19W_DataSet-SFT - ้็จ๏ผ้ฒ็พ้พๆง้ๅฟ๏ผ๏ผ
m-a-p/COIG-CQIA - ๅฎๅ จ SFT๏ผ่ชๅปบ๏ผๅฑ้ฉไฟกๅทๅ่ฏ / ๆ็ญไธ่ถ็๏ผ
่ฎธๅฏ
็ปงๆฟๅบๅบง Qwen/Qwen3-8B ็ Apache-2.0ใๅพฎ่ฐๆฐๆฎไธญๅซ้จๅ NC๏ผ้ๅ็จ๏ผ่ฎธๅฏๆฅๆบ
๏ผๅฆ ShenNong_TCM_Dataset ๆ็กฎๆ ๆณจ"ไป
ๅญฆๆฏ็ ็ฉถใไธฅ็ฆๅ็จ"๏ผ๏ผๅ็จๅ่ฏท่ช่กๅฎๆๆฐๆฎ่ฎธๅฏๆธ
็ใ
ๅผ็จ
@misc{qwen3-8b-eldercare-2026,
title = {Qwen3-8B ่ไบบ็
งๆคๅฉๆ},
author = {zhuang},
year = {2026},
note = {LoRA fine-tune of Qwen3-8B on Chinese medical/nursing/TCM SFT mixture}
}
- Downloads last month
- 120