# 1. Base Model & Tokenizerbase_model:google/gemma-2-2b-itmodel_type:AutoModelForCausalLM# Corrected from 'type_of_model' for axolotltokenizer_type:AutoTokenizerhub_model_id:AiAF/rp-2b# New model ID for this finetunehub_strategy:checkpoint# 2. LoRA / QLoRA Configurationload_in_4bit:trueadapter:qloralora_r:64lora_alpha:128lora_dropout:0.05lora_target_linear:true# 3. Dataset Configuration (TRAIN = streamed)streaming:truestreaming_multipack_buffer_size:10000sample_packing:truedatasets:-path:AiAF/conversationsdata_files:conversations_V3.jsonl# revision:type:chat_templatesplit:trainfield_messages:conversationsmessage_property_mappings:role:fromcontent:valuechat_template:jinjachat_template_jinja:| {{ bos_token }} {% for m in messages %} {% set role = 'model' if m['role']=='assistant' else 'user' %} {{ '<start_of_turn>' + role + '\n' + m['content'] | trim + '<end_of_turn>\n' }} {% endfor %} {% if add_generation_prompt %} {{ '<start_of_turn>model\n' }} {% endif %}# chat_template_jinja: |# {{ bos_token }}# {% set last = None %}# {% for m in messages %}# {% set raw_role = 'model' if m['role']=='assistant' else m['role'] %}# {% set role = 'user' if raw_role=='system' else raw_role %}# {% if role == last and role == 'user' %}# {{ m['content'] | trim }}# {% else %}# {{ '<start_of_turn>' + role + '\n' + m['content'] | trim + '<end_of_turn>\n' }}# {% endif %}# {% set last = role %}# {% endfor %}# {% if add_generation_prompt %}# {{ '<start_of_turn>model\n' }}# {% endif %}roles_to_train: ["assistant"]
train_on_eos:"turn"# Use a fixed (non-streamed) eval file with the same schema/Jinjatest_datasets:-path:.name:jsontype:chat_templatedata_files:eval-datasets/shuf-1000_conversations_V2.jsonl# small, representative eval slicesplit:trainfield_messages:conversationsmessage_property_mappings:role:fromcontent:valuechat_template:jinjachat_template_jinja:| {{ bos_token }} {% for m in messages %} {% set role = 'model' if m['role']=='assistant' else 'user' %} {{ '<start_of_turn>' + role + '\n' + m['content'] | trim + '<end_of_turn>\n' }} {% endfor %} {% if add_generation_prompt %} {{ '<start_of_turn>model\n' }} {% endif %}# chat_template_jinja: |# {{ bos_token }}# {% set last = None %}# {% for m in messages %}# {% set raw_role = 'model' if m['role']=='assistant' else m['role'] %}# {% set role = 'user' if raw_role=='system' else raw_role %}# {% if role == last and role == 'user' %}# {{ m['content'] | trim }}# {% else %}# {{ '<start_of_turn>' + role + '\n' + m['content'] | trim + '<end_of_turn>\n' }}# {% endif %}# {% set last = role %}# {% endfor %}# {% if add_generation_prompt %}# {{ '<start_of_turn>model\n' }}# {% endif %}roles_to_train: ["assistant"]
# 4. Training Parameterssequence_len:2048sample_packing:trueeval_sample_packing:true# val_set_size: 0.05 # remove for streaming# num_epochs: 10 # replace epochs with max_stepsmax_steps:1000# set your target stepsdataset_prepared_path:last_run_prepared# 5. Saving and Evaluation Strategy (use steps with streaming)evaluation_strategy:stepssave_strategy:stepseval_steps:50save_steps:50save_total_limit:100resume_from_checkpoint:# 6. Output & Loggingoutput_dir:./outputs/sft/gemma-2-2b-it-rp-sft-qlorawandb_project:"rp-sft"wandb_name:"gemma-2-2b-it-rp-sft-qlora"wandb_log_model:"false"wandb_run_id:"gemma-2-2b-it-rp-sft-qlora"# 7. Batching & Optimizergradient_accumulation_steps:4micro_batch_size:2optimizer:adamw_bnb_8bitlr_scheduler:cosinelearning_rate:0.0002weight_decay:0.0# 8. Hardware & Performancebf16:true#fp16: truetf32:trueflash_attention:truegradient_checkpointing:truelogging_steps:1# 9. Special Tokenseot_tokens: ["<end_of_turn>"]
special_tokens:bos_token:"<bos>"eos_token:"<eos>"pad_token:"<pad>"
rp-2b
This model is a fine-tuned version of
google/gemma-2-2b-it
on the AiAF/conversations dataset.
It achieves the following results on the evaluation set:
Loss: 2.2455
Memory/max Active (gib): 7.78
Memory/max Allocated (gib): 7.78
Memory/device Reserved (gib): 17.79
Model description
More information needed
Intended uses & limitations
More information needed
Training and evaluation data
More information needed
Training procedure
Training hyperparameters
The following hyperparameters were used during training:
learning_rate: 0.0002
train_batch_size: 1
eval_batch_size: 2
seed: 42
gradient_accumulation_steps: 4
total_train_batch_size: 4
optimizer: Use OptimizerNames.ADAMW_BNB with betas=(0.9,0.999) and epsilon=1e-08 and optimizer_args=No additional optimizer arguments
rp-2b huggingface.co is an AI model on huggingface.co that provides rp-2b's model effect (), which can be used instantly with this AiAF rp-2b model. huggingface.co supports a free trial of the rp-2b model, and also provides paid use of the rp-2b. Support call rp-2b model through api, including Node.js, Python, http.
rp-2b huggingface.co is an online trial and call api platform, which integrates rp-2b's modeling effects, including api services, and provides a free online trial of rp-2b, you can try rp-2b online for free by clicking the link below.
rp-2b is an open source model from GitHub that offers a free installation service, and any user can find rp-2b on GitHub to install. At the same time, huggingface.co provides the effect of rp-2b install, users can directly use rp-2b installed effect in huggingface.co for debugging and trial. It also supports api for free installation.