Re:CodeAlpaca – Instruction following code generation model
by NhanH on Saturday March 25, 2023 @11:38AM
(#35303734)
Probably in the hundreds of dollar for 7B model, and may be a thousand or two for the 13B at worst
Re:CodeAlpaca – Instruction following code generation model
by MacsHeadroom on Saturday March 25, 2023 @01:30PM
(#35304922)
Far far less. Alpaca-7B's compute cost was around $60-$70 for Stanford and around $0.60 (yes 60 cents) for equivalent fine tunes using the Parameter Efficient Fine Tuning (PEFT) strategy of Low Rank Adapters (LoRA).
The repo above can be replicated for similar costs. Easily less than $10 for up to 30B using LoRA (which requires only 24GB of VRAM for 30B/33B and smaller).
Re:CodeAlpaca – Instruction following code generation model
by Art9681 on Saturday March 25, 2023 @08:45PM
(#35309311)
I am interested in this. What would be the cost for the best model possible by the public?
Re:CodeAlpaca – Instruction following code generation model
by NhanH on Sunday March 26, 2023 @01:38AM
(#35311375)
I thought so too, but for newcomers, they should expect to train model a dozen times or so :-)
Re:CodeAlpaca – Instruction following code generation model
by menzoic on Saturday March 25, 2023 @11:37AM
(#35303714)
Stanford only spent $500 to fine-tune LLAMA for humam instruction with 52k instructions generated by GPT-3. This probably costs less. The use of GPT to generate the instruction data instead of humans is the massive cost reduction. The actual training for fine-tuning on GPUs is relatively cheap.
Re:CodeAlpaca – Instruction following code generation model
by IanCal on Saturday March 25, 2023 @12:15PM
(#35304112)
Most of that was getting the data, the training would cost something like $100 if memory serves.
Re:CodeAlpaca – Instruction following code generation model
by fareesh on Saturday March 25, 2023 @11:41AM
(#35303772)
I asked in the issues, let's see
Re:CodeAlpaca – Instruction following code generation model
by sahil_chaudhary on Saturday March 25, 2023 @02:44PM
(#35305708)
All included it costs under 70$ for the 13B model. Training 65B now so will report what that will cost.
Re:CodeAlpaca – Instruction following code generation model
by sillysaurusx on Saturday March 25, 2023 @03:43PM
(#35306404)
Please do! Also please include how you’re calculating the costs.
Re:CodeAlpaca – Instruction following code generation model
by alex_sf on Saturday March 25, 2023 @03:49PM
(#35306482)
For the 65B fine tune, did you add another A100 node? Or just drop batch size?
Any chance you’re up to sharing the training parameters?
Re:CodeAlpaca – Instruction following code generation model
by sahil_chaudhary on Saturday March 25, 2023 @03:51PM
(#35306508)
Dropping the batch size
I wonder how much it was total in $ for the fine-tuning.
Also, does anyone have some sort of table/formula that relates MB/GB of training data to $ for fine-tuning?