Instructions to use oscarzhang/HealthRecommendation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use oscarzhang/HealthRecommendation with PEFT:
Task type is invalid.
- Transformers
How to use oscarzhang/HealthRecommendation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("oscarzhang/HealthRecommendation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Configuration Parsing Warning:In adapter_config.json: "peft.task_type" must be a string
- Health Recommendation Model
- Model Description
- Model Details
- Uses
- Bias, Risks, and Limitations
- How to Get Started with the Model
- Training Details
- Evaluation
- Model Examination [optional]
- Environmental Impact
- Technical Specifications [optional]
- Citation [optional]
- Glossary [optional]
- More Information [optional]
- Model Card Authors [optional]
- Model Card Contact
Health Recommendation Model
ไธไธชๅบไบ Qwen3-VL-4B-Instruct ็ๅฅๅบทๅนฒ้ขๆนๆก็ๆๆจกๅใ
Model Description
่ฟไธชๆจกๅๆฏไธ้จ้ๅฏนๅฅๅบทๆจ่ๅๅนฒ้ขๆนๆก็ๆไปปๅก่ฟ่กๅพฎ่ฐ็ LoRA ้้ ๅจใๅฎ่ฝๅคๆ นๆฎ็จๆทๆไพ็็็ถไฟกๆฏ๏ผ็ๆไธชๆงๅ็ๅฅๅบทๅนฒ้ขๆนๆก๏ผๅ ๆฌ็ๆดปๆนๅผๅปบ่ฎฎใๅฟ็ๅนฒ้ขๅ็ฏๅขๆน้ ๅปบ่ฎฎใ
ไธป่ฆๅ่ฝ
- ็็ถๅๆ: ๅบไบ็จๆทๆไพ็็็ถไฟกๆฏ่ฟ่กๅๆ
- ๅนฒ้ขๆนๆก็ๆ: ็ๆๅ ๅซ็ๆดปๆนๅผใๅฟ็ใ็ฏๅขไธไธช็ปดๅบฆ็ๅนฒ้ขๅปบ่ฎฎ
- ็่ฎบไพๆฎ: ๆนๆกๅบไบ P3 ๆกๆถๆ PROCEED ๆกๆถ
- ่ฏไผฐๆๆ : ๆไพๅฏ้ๅ็่ฏไผฐๆๆ
ๆจกๅ็น็น
- Base Model: Qwen/Qwen3-VL-4B-Instruct
- Fine-tuning Method: LoRA (Low-Rank Adaptation)
- Language: ไธญๆ (Chinese)
- Domain: Healthcare, Health Recommendation
Model Details
Model Description
- Developed by: oscarzhang
- Model type: LoRA Adapter for Qwen3-VL-4B-Instruct
- Language(s): Chinese (ไธญๆ)
- License: Apache 2.0 (inherited from base model)
- Finetuned from: Qwen/Qwen3-VL-4B-Instruct
Model Sources [optional]
- Repository: [More Information Needed]
- Paper [optional]: [More Information Needed]
- Demo [optional]: [More Information Needed]
Uses
Direct Use
่ฟไธชๆจกๅๅฏไปฅ็ดๆฅ็จไบ็ๆๅฅๅบทๅนฒ้ขๆนๆกใ็จๆท้่ฆๆไพ๏ผ
- ็ฒ็็ถ๏ผไธป่ฆ็็ถๆ่ฟฐ๏ผ
- ็ปๅ็็ถ๏ผๅ ทไฝ็็ถ็ป่๏ผ
ๆจกๅๅฐ่พๅบๅ ๅซไปฅไธๅ ๅฎน็ๅนฒ้ขๆนๆก๏ผ
- ๆจ่ๅนฒ้ข๏ผ
- ็ๆดปๆนๅผ๏ผๅ ทไฝ็่กๅจๅปบ่ฎฎ
- ๅฟ็๏ผๅฟ็่ฎค็ฅๅฑ้ข็ๅนฒ้ข
- ็ฏๅข๏ผ็ฏๅขๆน้ ๅปบ่ฎฎ
- ่ฏไผฐๆๆ ๏ผๅฏ้ๅๆต้็ๆๆ
ไฝฟ็จ็คบไพ
from peft import PeftModel, PeftConfig
from transformers import AutoModelForCausalLM, AutoTokenizer
# ๅ ่ฝฝๅบ็กๆจกๅๅ้้
ๅจ
base_model = AutoModelForCausalLM.from_pretrained(
"Qwen/Qwen3-VL-4B-Instruct",
trust_remote_code=True
)
model = PeftModel.from_pretrained(base_model, "oscarzhang/HealthRecommendation")
tokenizer = AutoTokenizer.from_pretrained("Qwen/Qwen3-VL-4B-Instruct", trust_remote_code=True)
# ็ๆๅนฒ้ขๆนๆก
prompt = """่ฏทๅบไบ็็ถไฟกๆฏ๏ผ็ๆไธชๆงๅ็ๅฅๅบทๅนฒ้ขๆนๆกใ
็ฒ็็ถ๏ผ็ฒๅณ
็ปๅ็็ถ๏ผๆฉๆจ่ตทๅบๅๆ็ปญ็ฒๆซๆ๏ผๅฝฑๅๆฅๅธธๅทฅไฝ"""
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_new_tokens=500, temperature=0.3)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Downstream Use
่ฟไธชๆจกๅๅฏไปฅ่ฟไธๆญฅๅพฎ่ฐ็จไบ๏ผ
- ็นๅฎ็พ็ ็ๅนฒ้ขๆนๆก็ๆ
- ไธๅๅนด้พๆฎตไบบ็พค็ๅฅๅบทๅปบ่ฎฎ
- ็ปๅๆดๅคๅฅๅบทๆฐๆฎ็ๆจ่็ณป็ป
Out-of-Scope Use
โ ๏ธ ้่ฆ้ๅถ๏ผ
- ๆฌๆจกๅไป ๆไพ็ๆดปๅนฒ้ขๅปบ่ฎฎ๏ผไธๅๅป็่ฏๆญ
- ไธๅบ็จไบ็ดงๆฅๅป็ๆ ๅต
- ๅฏนไบ้่ฆๅป็ๅนฒ้ข็ๆ ๅต๏ผๅฟ ้กปๆ็กฎๆๅบ้่ฆๅฐฑๅป
- ไธๅบๆฟไปฃไธไธๅป็ๅปบ่ฎฎ
Bias, Risks, and Limitations
[More Information Needed]
Recommendations
Users (both direct and downstream) should be made aware of the risks, biases and limitations of the model. More information needed for further recommendations.
How to Get Started with the Model
Use the code below to get started with the model.
[More Information Needed]
Training Details
Training Data
่ฎญ็ปๆฐๆฎๅ ๅซ126ไธชๅฅๅบทๅนฒ้ขๆนๆกๆ ทๆฌ๏ผๆฏไธชๆ ทๆฌๅ ๅซ๏ผ
- ็็ถไฟกๆฏ๏ผ็ฒ็็ถๅ็ปๅ็็ถ๏ผ
- ็่ฎบๆกๆถๅๆ๏ผP3ๆกๆถๅPROCEEDๆกๆถ๏ผ
- ๅฎๆด็ๅนฒ้ขๆนๆก๏ผ็ๆดปๆนๅผใๅฟ็ใ็ฏๅขไธไธช็ปดๅบฆ๏ผ
- ่ฏไผฐๆๆ
Training Procedure
Preprocessing
่ฎญ็ปๆฐๆฎ็ป่ฟไปฅไธ้ขๅค็๏ผ
- ็็ถๆ ๅๅ
- ็่ฎบๆกๆถๆๅ
- ๅนฒ้ขๆนๆก็ปๆๅ
- ่ดจ้่ฏๅ้ช่ฏ
Training Hyperparameters
- Training method: LoRA (Low-Rank Adaptation)
- Training regime: fp16 mixed precision
- LoRA rank (r): 16
- LoRA alpha: 16
- LoRA dropout: 0.05
- Target modules: v_proj, q_proj, k_proj, o_proj
- Learning rate: 2e-4 (with linear decay and warmup)
- Batch size: 1 (with gradient accumulation of 8)
- Training steps: 100
- Max sequence length: 512 tokens
Training Results
- Initial Loss: 2.5
- Final Loss: 0.7
- Loss reduction: 72%
- Training time: ~1.7 hours
Evaluation
Testing Data, Factors & Metrics
Testing Data
[More Information Needed]
Factors
[More Information Needed]
Metrics
[More Information Needed]
Results
[More Information Needed]
Summary
Model Examination [optional]
[More Information Needed]
Environmental Impact
Carbon emissions can be estimated using the Machine Learning Impact calculator presented in Lacoste et al. (2019).
- Hardware Type: [More Information Needed]
- Hours used: [More Information Needed]
- Cloud Provider: [More Information Needed]
- Compute Region: [More Information Needed]
- Carbon Emitted: [More Information Needed]
Technical Specifications [optional]
Model Architecture and Objective
[More Information Needed]
Compute Infrastructure
[More Information Needed]
Hardware
[More Information Needed]
Software
[More Information Needed]
Citation [optional]
BibTeX:
[More Information Needed]
APA:
[More Information Needed]
Glossary [optional]
[More Information Needed]
More Information [optional]
[More Information Needed]
Model Card Authors [optional]
[More Information Needed]
Model Card Contact
[More Information Needed]
Framework versions
- PEFT 0.17.1
- Downloads last month
- 4
Model tree for oscarzhang/HealthRecommendation
Base model
Qwen/Qwen3-VL-4B-Instruct