Downloads · 30 days
0
rojaldo/francis-botcon-lora
francis-botcon-lora is a text generation model from rojaldo. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as mit.
Francis Botcon is a fine-tuned version of Mistral-7B-Instruct-v0.2 optimized for answering questions about Francis Bacon and his works. The model uses LoRA (Low-Rank Adaptation) for efficient fine-tuning and inference.
Downloads · 30 days
0
Access
Public
Updated Nov 2, 2025
Repo size
248 MB
Likes
0
Public
Click a slice to open those files.
.safetensors191 MB · 64%
From the Hugging Face model README
Francis Botcon is a fine-tuned version of Mistral-7B-Instruct-v0.2 optimized for answering questions about Francis Bacon and his works. The model uses LoRA (Low-Rank Adaptation) for efficient fine-tuning and inference.
This model is designed for:
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
# Load base model
model = AutoModelForCausalLM.from_pretrained(
"mistralai/Mistral-7B-Instruct-v0.2",
device_map="auto",
torch_dtype="auto"
)
# Load LoRA adapter
model = PeftModel.from_pretrained(
model,
"rojaldo/francis-botcon-lora"
)
tokenizer = AutoTokenizer.from_pretrained("mistralai/Mistral-7B-Instruct-v0.2")
# Generate response
prompt = "What did Francis Bacon believe about knowledge?"
inputs = tokenizer(prompt, return_tensors="pt")
outputs = model.generate(**inputs, max_length=512)
print(tokenizer.decode(outputs[0]))
The model is best used with a RAG system that retrieves relevant passages from Bacon's works:
from src.rag_system import RAGSystem
rag_system = RAGSystem(
model=model,
tokenizer=tokenizer,
vector_db_path="./data/vectordb"
)
response = rag_system.query("What is the scientific method according to Bacon?")
print(response)
The model was evaluated on a held-out test set:
| Metric | Value |
|---|---|
| Eval Loss | 1.2559 |
| Token Accuracy | 73.95% |
| Entropy | 1.2392 |
This model and its components are released under the MIT License.
If you use this model, please cite:
@model{francis_botcon_2025,
title={Francis Botcon: Fine-tuned Mistral 7B for Francis Bacon Studies},
author={Rojaldo},
year={2025},
publisher={Hugging Face}
}
For questions or issues, please open an issue on the project repository or contact the maintainers.