ai4bharat/indic-instruct-data-v0.1
Viewer • Updated • 404k • 451 • 26
How to use Utkarsh736/llama_lora_indic_instruct with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("unsloth/llama-3.2-1b-instruct-unsloth-bnb-4bit")
model = PeftModel.from_pretrained(base_model, "Utkarsh736/llama_lora_indic_instruct")How to use Utkarsh736/llama_lora_indic_instruct with Transformers:
# Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Utkarsh736/llama_lora_indic_instruct", device_map="auto")This is a LoRA adapter fine-tuned on Indic instruction data for better performance on Hindi + English conversational and instructional tasks.
unsloth/llama-3.2-1b-instruct-unsloth-bnb-4bitThis Llama model was trained 2x faster with Unsloth
Fine-tuned on a subset of:
Mainly using the anudesh and oasst1 configs (English + Hindi splits).
from unsloth import FastLanguageModel
model, tokenizer = FastLanguageModel.from_pretrained(
model_name = "Utkarsh736/llama_lora_indic_instruct",
max_seq_length = 2048,
dtype = None,
load_in_4bit = True,
)
FastLanguageModel.for_inference(model)
from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel
base_model = AutoModelForCausalLM.from_pretrained(
"unsloth/Llama-3.2-1B-Instruct",
device_map="auto",
load_in_4bit=True,
)
model = PeftModel.from_pretrained(base_model, "Utkarsh736/llama_lora_indic_instruct")
tokenizer = AutoTokenizer.from_pretrained("Utkarsh736/llama_lora_indic_instruct")
Base model
meta-llama/Llama-3.2-1B-Instruct