Downloads · 30 days
10
43% of all-time downloads
eswarankrishnamurthy/murli-assistant-phi2-lora
murli-assistant-phi2-lora is a machine learning model from eswarankrishnamurthy. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft. The card lists the license as apache-2.0.
This model is a fine-tuned version of microsoft/phi-2 using LoRA (Low-Rank Adaptation) on Brahma Kumaris Murli data.
Downloads · 30 days
10
43% of all-time downloads
All-time downloads
23
Public
Repo size
94.8 MB
Likes
1
Public
Click a slice to open those files.
.pt63.2 MB · 51%
From the Hugging Face model README
This model is a fine-tuned version of microsoft/phi-2 using LoRA (Low-Rank Adaptation) on Brahma Kumaris Murli data.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
# Load base model
base_model = AutoModelForCausalLM.from_pretrained(
"microsoft/phi-2",
torch_dtype=torch.float16,
device_map="auto",
trust_remote_code=True
)
# Load LoRA adapter
model = PeftModel.from_pretrained(base_model, "eswarankrishnamurthy/murli-assistant-phi2-lora")
tokenizer = AutoTokenizer.from_pretrained("microsoft/phi-2")
tokenizer.pad_token = tokenizer.eos_token
# Generate response
question = "What is the essence of today's murli?"
prompt = f"### Instruction:\n{question}\n\n### Response:\n"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=200)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
This model is also available via Hugging Face Inference API:
import requests
API_URL = "https://api-inference.huggingface.co/models/eswarankrishnamurthy/murli-assistant-phi2-lora"
headers = {"Authorization": f"Bearer {YOUR_HF_TOKEN}"}
def query(payload):
response = requests.post(API_URL, headers=headers, json=payload)
return response.json()
output = query({"inputs": "What is soul consciousness?"})
print(output)
The model was trained on diverse murli content including:
If you use this model, please cite:
@misc{murli-assistant-phi2,
author = {eswarankrishnamurthy},
title = {Murli Assistant - Fine-tuned Phi-2},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/eswarankrishnamurthy/murli-assistant-phi2-lora}
}
For questions or feedback, please open an issue on the model repository.