Downloads · 30 days
18
14% of all-time downloads
molbal/ungpt-v1
ungpt-v1 is a text generation model from molbal. Use it when you need the model to write or continue text. It is set up for unsloth. The card lists the license as apache-2.0.
- Name: UnGPT-v1 - Foundation Model: Mistral v0.3 (7B parameters) - Recommended Context Length: 16k tokens - Fine-tuning Methodology: LoRA-based training with Odds Ratio Preference Optimization method, using a combina…
Downloads · 30 days
18
14% of all-time downloads
All-time downloads
132
Public
Repo size
4.4 GB
Likes
0
Public
Click a slice to open those files.
.gguf4.4 GB · 100%
From the Hugging Face model README
Use the Alpaca format for prompts:
### Instruction:
{instruction}
### Input:
{input}
### Response:
Example prompts
For instructions, it is not recommended to deviate from the provided examples. For the input, a minimum is 10 sentences, but more can work as the model can handle longer context sizes (Thanks to the Mistral 7B v0.3 base model).
Completion Prompt:
### Instruction:
Continue writing the story while retaining writing style. Write about 10 sentences.
### Input:
It was a dark and stormy night...
### Response:
Fill-in-the-middle Prompt:
### Instruction:
Fill in the missing part of the story ({{FILL_ME}}) with about 10 sentences while retaining the writing style.
### Input:
The bus was speeding down the road, cops chasing after it.
{{FILL_ME}}
She woke up to find herself in an unfamiliar room...
### Response:
For dataset acquisition and cleanup please refer steps 1 and 2 of my text-completion example, molbal/llm-text-completion-finetune.
Chunking: Split texts into chunks based on sentence boundaries, aiming for 100 sentences per example.
The beauty of the ORPO method is that for a single prompt we can set both a positive and a negative example. I wanted the model to avoid 'GPTisms' so I had gpt4o-mini generate answers both for completion and FOM tasks and added them as a neative example.
The dataset used is ~15k examples, each approximately 9000 characters long including input, accepted and refused response. (Note these are characters not tokens)
Fine-tuned the Mistral v0.3 foundation model using Unsloth and ORPO trainer.
Training configuration:
Hardware
Training costs
Licensing and Citation
@misc{ungpt-v1,
author = Bálint Molnár-Kaló,
title = {UnGPT-v1: A Fine-tuned Mistral Model for Story Continuation},
howpublished = {\url{https://huggingface.co/models/molbal/UnGPT-v1}},
year = 2024
}