ai4bharat/indic-instruct-data-v0.1
Viewer • Updated • 404k • 459 • 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")How to use Utkarsh736/llama_lora_indic_instruct with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Utkarsh736/llama_lora_indic_instruct to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Utkarsh736/llama_lora_indic_instruct to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Utkarsh736/llama_lora_indic_instruct to start chatting
pip install unsloth
from unsloth import FastModel
model, tokenizer = FastModel.from_pretrained(
model_name="Utkarsh736/llama_lora_indic_instruct",
max_seq_length=2048,
)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