This repository contains a LoRA adapter fine-tuned on the AIR-Bench Healthcare Spanish (ES) benchmark using Meta Llama 3.3 70B Instruct as the base model. The adapter is intended for research on healthcare-oriented instruction following, medical question answering, and clinical reasoning tasks in Spanish.
Developed by: Roshan G
Funded by: Independent research
Shared by: Roshan G
Model type: PEFT LoRA Adapter
Language(s): Spanish (es)
License: Subject to the license of the base model (Meta Llama 3.3)
Finetuned from model:meta-llama/Llama-3.3-70B-Instruct
Unsafe recommendations if used without expert oversight
Outputs should always be verified by qualified healthcare professionals.
Recommendations
Users should:
Treat outputs as research artifacts only.
Verify all medical information independently.
Avoid deploying this model in production healthcare systems.
Evaluate performance thoroughly before downstream usage.
How to Get Started with the Model
Install dependencies:
pip install transformers peft accelerate torch
Load the adapter:
python
1from transformers import AutoTokenizer, AutoModelForCausalLM
2from peft import PeftModel
3import torch
45BASE_MODEL ="meta-llama/Llama-3.3-70B-Instruct"6ADAPTER ="Roshang09112007/adaption-air-bench-healthcare-es"78tokenizer = AutoTokenizer.from_pretrained(BASE_MODEL)910base_model = AutoModelForCausalLM.from_pretrained(11 BASE_MODEL,12 torch_dtype=torch.bfloat16,13 device_map="auto"14)1516model = PeftModel.from_pretrained(17 base_model,18 ADAPTER
19)2021prompt ="¿Cuáles son los síntomas de la diabetes tipo 2?"2223inputs = tokenizer(prompt, return_tensors="pt").to(model.device)2425outputs = model.generate(26**inputs,27 max_new_tokens=20028)2930print(tokenizer.decode(outputs[0], skip_special_tokens=True))
Training Details
Training Data
The model was fine-tuned using the AIR-Bench Healthcare Spanish (ES) dataset consisting of healthcare-related instruction-response pairs.
Training Procedure
The model was trained using Parameter-Efficient Fine-Tuning (PEFT) with the LoRA method.
Training Hyperparameters
Training regime: Supervised fine-tuning (SFT)
Fine-tuning method: LoRA
Framework: PEFT
Precision: Mixed precision
Base model: Llama 3.3 70B Instruct
Evaluation
Testing Data
Evaluation was performed using healthcare-related Spanish benchmark examples.
Factors
Evaluation considered:
Instruction following
Medical reasoning
Response relevance
Spanish language quality
Metrics
Potential evaluation metrics include:
Accuracy
Exact Match (EM)
BLEU
ROUGE
Human evaluation
Results
Evaluation results are currently under investigation and may vary depending on task and prompting strategy.
Summary
This repository provides a LoRA adapter specialized for healthcare-related Spanish instruction-following tasks using Meta Llama 3.3 70B Instruct as the backbone model.
Environmental Impact
Carbon emissions were not formally measured.
Hardware Type: GPU Accelerator
Hours Used: Not reported
Cloud Provider: Not reported
Compute Region: Not reported
Carbon Emitted: Unknown
Technical Specifications
Model Architecture and Objective
Architecture: Transformer Decoder
Base Model: Meta Llama 3.3 70B Instruct
Adaptation Method: LoRA (PEFT)
Objective: Instruction fine-tuning for healthcare tasks
Compute Infrastructure
Fine-tuning performed using GPU-based hardware acceleration.