Downloads · 30 days
10
9% of all-time downloads
manohar3181/TarintinoStyle-scene-generator-v1
TarintinoStyle-scene-generator-v1 is a text generation model from manohar3181. 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 is a fine-tuned version of mistralai/Mistral-7B-Instruct-v0.2 that generates movie script scenes in the distinctive style of Quentin Tarantino.
Downloads · 30 days
10
9% of all-time downloads
All-time downloads
115
Public
Parameters
7.2B
7.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors7.5 GB · 100%
How the weights are stored.
I87B · 96%
From the Hugging Face model README
This is a fine-tuned version of mistralai/Mistral-7B-Instruct-v0.2 that generates movie script scenes in the distinctive style of Quentin Tarantino.
This model was fine-tuned on a custom dataset of Quentin Tarantino's screenplays. The goal was to teach the model the unique structural, stylistic, and tonal characteristics of his writing, including the witty, fast-paced dialogue, screenplay formatting, and shifts in tone from casual to tense. The model is intended for creative and entertainment purposes, acting as a "Scene Generator" that can take a high-level creative brief and output a formatted script scene.
mistralai/Mistral-7B-Instruct-v0.2The model is intended to be used for creative text generation. You provide it with a high-level instruction describing a scene, and it will generate a response formatted as a screenplay.
from transformers import pipeline
# Replace with your final model repository name
model_name = "manohar3181/Tarantino-Scene-Generator-v1"
generator = pipeline("text-generation", model=model_name)
prompt = "Write a scene where two old gangsters meet in an empty warehouse. One has betrayed the other."
formatted_prompt = f"<s>[INST] {prompt} [/INST]"
outputs = generator(formatted_prompt, max_new_tokens=300)
print(outputs[0]['generated_text'])
#### Training Hyperparameters
Training Hyperparameters
The model was fine-tuned for 2 epochs using the SFTTrainer from the TRL library.
Quantization: QLoRA (4-bit NF4)
LoRA r: 16
LoRA alpha: 32
Learning Rate: 5e-5
Optimizer: Paged AdamW (8-bit)
LR Scheduler: Cosine