Downloads · 30 days
24
3% of all-time downloads
singtan/my-llm-finetuned-pdf
my-llm-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 specialized version of gpt2, fine-tuned for high-context coherence based on technical documentation extracted from PDF sources.
Downloads · 30 days
24
3% of all-time downloads
All-time downloads
706
Public
Parameters
124M
498 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors498 MB · 99%
From the Hugging Face model README
This model is a specialized version of gpt2, fine-tuned for high-context coherence based on technical documentation extracted from PDF sources.
This model was developed to improve text generation accuracy and contextual understanding for specific domains covered in the provided PDF assets. It leverages the underlying architecture of gpt2 and is optimized for the structure and vocabulary found in document-based datasets.
| Attribute | Value |
|---|---|
| Base Architecture | gpt2 |
| Format | PyTorch (Transformers) |
| Task | Causal Language Modeling |
| Language | English (en) |
The model was fine-tuned using the following high-level hyperparameters to ensure stability and convergence:
The training data was sourced from dummy.pdf. The pipeline included:
pypdf.To utilize this model for inference, use the following snippet:
from transformers import AutoTokenizer, AutoModelForCausalLM
checkpoint = "singtan/my-llm-finetuned-pdf"
tokenizer = AutoTokenizer.from_pretrained(checkpoint)
model = AutoModelForCausalLM.from_pretrained(checkpoint)
prompt = "Insert your context here"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=150)
print(tokenizer.decode(outputs[0]))
Developed by Bibek - Senior AI Engineering Portfolio.