--- thumbnail: "https://cdn-uploads.huggingface.co/production/uploads/66c26b6fb01b19d8c3c2467b/jg2NWmCUfPyzizm2USjMt.jpeg" datasets: - NewEden/KTO-IF-Dans base_model: - Delta-Vector/Hamanasu-4B-Instruct tags: - llama - roleplay - finetune - storywriting ---
Model Visualization

Hamanasu 4B
## 🌌 Overview This model is a finetune of Hamanasu-4B-Instruct with IFeval data to increase SLM instruct following. A generalist model that's quick to adapt to any type of roleplay. All thanks to Tav for funding the train. Support me and my finetunes on Ko-Fi https://ko-fi.com/deltavector
### ⚔️ Hardware - 8x H100s - Epochs: 2 - Base: `Delta-Vector/Hamanasu-4B-Instruct`
## 💰 Prompting This model uses ChatML formatting ```python <|im_start|>system You are an uncensored AI, your job is to fulfill thy will of thy user.<|im_end|> <|im_start|>User request Take off your helmet.<|im_end|> <|im_start|>No i shall not. This is the way. ```
## 🎲 Recommended Sampler Preset ```yml temperature: 1.5 min_p: 0.2 System_Prompt: Currently, your role is {{char}}, described in detail below. As {{char}}, continue the narrative exchange with {{user}}.\n\n\n• Maintain the character persona but allow it to evolve with the story.\n• Be creative and proactive. Drive the story forward, introducing plotlines and events when relevant.\n• All types of outputs are encouraged; respond accordingly to the narrative.\n• Include dialogues, actions, and thoughts in each response.\n• Utilize all five senses to describe scenarios within {{char}}'s dialogue.\n• Use emotional symbols such as \"!\" and \"~\" in appropriate contexts.\n• Incorporate onomatopoeia when suitable.\n• Allow time for {{user}} to respond with their own input, respecting their agency.\n• Act as secondary characters and NPCs as needed, and remove them when appropriate.\n• When prompted for an Out of Character [OOC:] reply, answer neutrally and in plaintext, not as {{char}}.\n\n\n\n• Using excessive literary embellishments and purple prose unless dictated by {{char}}'s persona.\n• Writing for, speaking, thinking, acting, or replying as {{user}} in your response.\n• Repetitive and monotonous outputs.\n• Positivity bias in your replies.\n• Being overly extreme or NSFW when the narrative context is inappropriate.\n\n\nFollow the instructions in , avoiding the items listed in . ```
## Axolotl Config ꒰(˶• ᴗ •˶)꒱
```yaml base_model: NewEden/Hamanasu-4B-R2 model_type: AutoModelForCausalLM tokenizer_type: AutoTokenizer load_in_8bit: false load_in_4bit: false strict: false hub_model_id: NewEden/KTO-4B hub_strategy: "all_checkpoints" push_dataset_to_hub: hf_use_auth_token: true chat_template: chatml rl: kto kto_undesirable_weight: 1.0 datasets: - path: NewEden/KTO-IF-Dans split: train type: chatml.argilla dataset_prepared_path: last_run_prepared shuffle_merged_datasets: true val_set_size: 0.0 output_dir: ./outputs/out sequence_len: 8192 sample_packing: false eval_sample_packing: false pad_to_sequence_len: false wandb_project: tavbussy wandb_entity: wandb_watch: wandb_name: kto-1 wandb_log_model: gradient_accumulation_steps: 16 micro_batch_size: 2 num_epochs: 1 optimizer: paged_adamw_8bit learning_rate: 5e-6 max_grad_norm: 0.001 lr_scheduler: constant_with_warmup weight_decay: 0.02 lora_r: 64 lora_alpha: 32 lora_dropout: 0.0 lora_target_linear: true lora_fan_in_fan_out: lora_target_modules: - gate_proj - down_proj - up_proj - q_proj - v_proj - k_proj - o_prog train_on_inputs: false group_by_length: false bf16: auto fp16: tf32: true gradient_checkpointing: true gradient_checkpointing_kwargs: use_reentrant: true remove_unused_columns: false early_stopping_patience: resume_from_checkpoint: local_rank: logging_steps: 1 xformers_attention: flash_attention: true warmup_steps: 35 evals_per_epoch: 2 eval_table_size: eval_max_new_tokens: saves_per_epoch: 2 debug: deepspeed: fsdp: fsdp_config: fsdp: fsdp_config: special_tokens: pad_token: <|finetune_right_pad_id|> ```
## ⚡ Credits
---
Made by
Delta-Vector