Instructions to use Openledger/Solidity_Model_Q with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Openledger/Solidity_Model_Q with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-7B") model = PeftModel.from_pretrained(base_model, "Openledger/Solidity_Model_Q") - Notebooks
- Google Colab
- Kaggle
File size: 663 Bytes
7a8fec5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | bf16: true
cutoff_len: 2048
dataset: solidity_contract
dataset_dir: data
ddp_timeout: 180000000
do_train: true
finetuning_type: lora
flash_attn: auto
gradient_accumulation_steps: 12
learning_rate: 5.0e-05
logging_steps: 5
lora_alpha: 32
lora_dropout: 0.1
lora_rank: 16
lora_target: all
lr_scheduler_type: cosine
max_grad_norm: 1.0
max_samples: 100000
model_name_or_path: Qwen/Qwen2.5-Coder-7B
num_train_epochs: 1.0
optim: adamw_torch
output_dir: saves/Qwen2.5-Coder-7B/lora/solidity_qwen_model
packing: false
per_device_train_batch_size: 8
plot_loss: true
preprocessing_num_workers: 16
report_to: none
save_steps: 100
stage: sft
template: default
warmup_steps: 0
|