---
license: cc-by-nc-4.0
language:
- en
---
Trained with compute from [Backyard.ai](https://backyard.ai/) | Thanks to them and @dynafire for helping me out.
---
Training Details:
Trained at 8K Context -> Expanded to 32K Context due to context extension with PoSE training.
Dataset Modifications:
\- Further Cleaned up Roleplaying Samples -> Quality Check
\- Removed Low Quality Samples from Manual Check
\- More Creative Writing Samples -> 2x
\- Remade and Refined Detailed Instruct Data
Coherent at 32K Context. Obviously not as good as a native 32K Context Model, but good enough. Has some of the usual memory issues in the middle of context, it has some problems with long-context understanding and reasoning, but it does not break down into incoherency like regular rope scaling does.
Notes:
\- Training run is much less aggressive than previous Stheno versions.
\- This model works when tested in bf16 with the same configs as within the file.
\- I do not know the effects quantisation has on it.
\- Roleplays pretty well. Feels nice in my opinion.
\- Reminder, this isn't a native 32K model. It has it's issues, but it's coherent and working well.
Sanity Check // Needle in a Haystack Results:
![Results](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.3-32K/resolve/main/haystack.png)
Wandb Run:
![Wandb](https://huggingface.co/Sao10K/L3-8B-Stheno-v3.3-32K/resolve/main/wandb.png)
---
Relevant Axolotl Configurations:
-> Taken from [winglian/Llama-3-8b-64k-PoSE](https://huggingface.co/winglian/Llama-3-8b-64k-PoSE)
\- I tried to find my own configs, hours of tinkering but the one he used worked best, so I stuck to it.
\- 2M Rope Theta had the best loss results during training compared to other values.
```
sequence_len: 8192
use_pose: true
pose_max_context_len: 32768
overrides_of_model_config:
rope_theta: 2000000.0
max_position_embeddings: 32768
# peft_use_dora: true
adapter: lora
peft_use_rslora: true
lora_model_dir:
lora_r: 256
lora_alpha: 256
lora_dropout: 0.1
lora_target_linear: true
lora_target_modules:
- gate_proj
- down_proj
- up_proj
- q_proj
- v_proj
- k_proj
- o_proj
warmup_steps: 80
gradient_accumulation_steps: 6
micro_batch_size: 1
num_epochs: 2
optimizer: adamw_bnb_8bit
lr_scheduler: cosine_with_min_lr
learning_rate: 0.00004
lr_scheduler_kwargs:
min_lr: 0.000004
```