bohdanpetryshyn / code-llama-fim-fine-tuning Goto Github PK
View Code? Open in Web Editor NEWFill-in-the-middle fine-tuning for the Code Llama model ๐ฆ
License: MIT License
Fill-in-the-middle fine-tuning for the Code Llama model ๐ฆ
License: MIT License
I try to use your hyperparameters to verify your paper, bug the result is differernt from yours. I use these hyperparameters:
--model_name_or_path "..."
--dataset_file_name "..."
--splits "train"
--max_seq_len 4096
--max_steps 1000
--save_steps 100
--eval_steps 100
--logging_steps 1
--log_level "info"
--logging_strategy "steps"
--evaluation_strategy "steps"
--save_strategy "steps"
--push_to_hub False
--bf16 False
--fp16 True
--learning_rate 2e-4
--lr_scheduler_type "cosine"
--weight_decay 0.1
--warmup_ratio 0.05
--max_grad_norm 1.0
--output_dir "fine-tune-19-54"
--per_device_train_batch_size 1
--per_device_eval_batch_size 1
--gradient_accumulation_steps 8
--gradient_checkpointing True
--use_reentrant True
--dataset_text_field "content"
--test_size 0.1
--fim_rate 0.9
--fim_spm_rate 0.5
--use_peft_lora True
--lora_r 32
--lora_alpha 64
--lora_dropout 0.1
--lora_target_modules "all-linear"
--use_4bit_quantization True
--use_nested_quant True
--bnb_4bit_compute_dtype "bfloat16"
--use_flash_attn False
If you don't mind, can you share the hyperparameters used to train the original Code-Llama?
self.eot_token_id = tokenizer.encode(
tokenizer.eot_token, add_special_tokens=False
)[0]
File "/home/hsai/works/code-llama-fim-fine-tuning/dataset.py", line 45, in init
tokenizer.eot_token, add_special_tokens=False
AttributeError: 'LlamaTokenizerFast' object has no attribute 'eot_token'. Did you mean: 'eos_token'?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.