Downloads · 30 days
42
4% of all-time downloads
singtan/solvrays-finetuned-pdf
solvrays-finetuned-pdf is a text generation model from singtan. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a high-performance, standalone version of Gemma 2B, meticulously fine-tuned for complex document understanding and technical metadata extraction. Unlike standard PEFT adapters, this version features merg…
Downloads · 30 days
42
4% of all-time downloads
All-time downloads
1K
Public
Parameters
2.5B
10.1 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors5 GB · 99%
From the Hugging Face model README
This model is a high-performance, standalone version of Gemma 2B, meticulously fine-tuned for complex document understanding and technical metadata extraction. Unlike standard PEFT adapters, this version features merged weights, enabling seamless integration into production pipelines without the overhead of loading separate adapter layers.
You can deploy this model using standard Hugging Face transformers logic.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_id = "singtan/solvrays-finetuned-pdf"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map="auto",
torch_dtype=torch.float16,
trust_remote_code=True
)
prompt = "Analyze the provided technical documentation and summarize the key infrastructure recommendations."
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
outputs = model.generate(**inputs, max_new_tokens=256, temperature=0.7, top_p=0.9)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
While optimized for technical documentation, this model remains a generative LLM and may produce hallucinations if the input context is missing or highly ambiguous. It is recommended to use Retrieval-Augmented Generation (RAG) or strict prompting for mission-critical data extraction.
This model follows the Apache-2.0 license. Usage must adhere to the Google Gemma Prohibited Use Policy.
Fine-tuned and Merged by Bibek Lama Singtan