Downloads · 30 days
0
bockhealthbharath/Eira-0.1
Eira-0.1 is a text generation model from bockhealthbharath. Use it when you need the model to write or continue text. It is set up for adapter-transformers. The card lists the license as mit.
A fine-tuned version of the "Eira-0.1" Causal Language Model, designed to answer questions and generate text based on a collection of medical PDFs. This model is optimized for question answering, summarization, and ch…
Downloads · 30 days
0
Access
Public
Updated May 13, 2025
Parameters
81.9M
328 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors328 MB · 99%
From the Hugging Face model README
A fine-tuned version of the "Eira-0.1" Causal Language Model, designed to answer questions and generate text based on a collection of medical PDFs. This model is optimized for question answering, summarization, and chatbot-style responses grounded in the specific PDF documents it was trained on.
This Kaggle model is a fine-tuned version of the Eira-0.1 Causal Language Model (presumably transformer-based, using AutoModelForCausalLM). It has been specifically adapted to understand and generate text based on content extracted from medical and domain-specific PDF documents.
The model is suited for interactive chat or question-answering tasks where the knowledge base is the document collection itself. It does not possess general world knowledge beyond these documents.
/kaggle/input/dataset using PyMuPDFAutoModelForCausalLM with tokenizer from base modelThis model can be used for:
"What is the recommended dosage for drug X?")fitz)tqdm"filename.pdf - Page X:\n[page content]"Eira-0.1/kaggle/input/eira0.1/kaggle/working/eira_2_finetuned(You should link the base model card on Hugging Face or the original source if publishing externally.)
Eira-0.1 [Details to be added if available]/kaggle/input/datasetfrom transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_path = "/kaggle/working/eira_2_finetuned"
tokenizer = AutoTokenizer.from_pretrained(model_path)
model = AutoModelForCausalLM.from_pretrained(model_path)
model.to("cuda" if torch.cuda.is_available() else "cpu")
def ask_eira(prompt):
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(
inputs.input_ids,
max_length=200,
temperature=0.7,
top_p=0.9,
repetition_penalty=1.2
)
return tokenizer.decode(outputs[0], skip_special_tokens=True)
# Example usage
response = ask_eira("What is the treatment protocol for asthma?")
print(response)