Downloads · 30 days
5
18% of all-time downloads
jdpressman/Mistral-Morpheus-7B
Mistral-Morpheus-7B is a machine learning model from jdpressman. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for peft.
First iteration of the default generator LoRa for MiniHF. This model still functions as a base model while writing more coherent text.
Downloads · 30 days
5
18% of all-time downloads
All-time downloads
28
Public
Repo size
341 MB
Likes
0
Public
Click a slice to open those files.
.safetensors340 MB · 99%
From the Hugging Face model README
First iteration of the default generator LoRa for MiniHF. This model still functions as a base model while writing more coherent text.
This model was trained starting from the MiniHF Mistral SFT evaluator. It was created using the MiniHF Reinforcement Learning From AI Feedback pipeline:
accelerate launch rlaif_generator.py --resume minihf_evaluator_mistral_7b_v0.1 --output-path mistral_h_eval --kl-weight 1.0 --constitution hermes/hermes_constitution.txt --prompts hermes/hermes_prompts.txt --length 256 --batch-size 4 --grad-accum-steps 8
The tuning script was modified to use the AdamW optimizer with weight decay:
opt = optim.AdamW(model.parameters(), lr=1e-5, weight_decay=1e-2, betas=(0.9, 0.98))
This weight decay is based on the observation that RL tuning mode collapse can be undone by interpolating the weights of the base model with that of the RL tuned model. Here the specific recipe was to start from the MiniHF SFT evaluator, then apply weight decay and the KL penalty towards the base model weights to inject entropy back into the policy.
The prompt bank using during tuning is in the hermes_prompts.txt file found in this repo, the constitution in hermes_constitution.txt
The following bitsandbytes quantization config was used during training:
PEFT 0.5.0
PEFT 0.5.0
PEFT 0.5.0