π¦ ClawHubβ¦ BytesAgain
LoRA Toolkit
by @loutai0307-prog
Configure, estimate, and generate LoRA fine-tuning scripts for LLMs. Input: base model name, dataset size, GPU spec. Output: training config, PEFT script, co...
TERMINAL
clawhub install bytesagain-lora-toolkitπ About This Skill
name: "bytesagain-lora-toolkit" description: "Configure, estimate, and generate LoRA fine-tuning scripts for LLMs. Input: base model name, dataset size, GPU spec. Output: training config, PEFT script, cost estimate." version: "1.0.0" author: "BytesAgain" tags: ["lora", "fine-tuning", "llm", "machine-learning", "training", "peft", "huggingface"]
LoRA Toolkit
Configure and generate LoRA fine-tuning scripts for large language models. Supports Llama, Mistral, Qwen, Phi and other HuggingFace-compatible models.
Commands
config
Generate a LoRA training configuration for your model and hardware.bash scripts/script.sh config --model llama3-8b --gpu 24gb --dataset 10000
Parameters:
--model β base model (llama3-8b, mistral-7b, qwen2-7b, phi3-mini, llama3-70b)--gpu β VRAM size (8gb, 16gb, 24gb, 40gb, 80gb)--dataset β number of training samplesestimate
Estimate VRAM usage, training time, and cost before starting.bash scripts/script.sh estimate --model mistral-7b --gpu 16gb --dataset 5000 --epochs 3
generate
Generate a ready-to-run Python training script using HuggingFace PEFT + TRL.bash scripts/script.sh generate --model llama3-8b --output train.py
validate
Check dataset format compatibility (Alpaca / ShareGPT / OpenAI Chat format).bash scripts/script.sh validate --file dataset.json --format alpaca
recommend
Recommend the best base model for your use case and hardware.bash scripts/script.sh recommend --task chat --gpu 16gb --language en
help
Show all commands.bash scripts/script.sh help
LoRA Parameters Reference
| Model Size | Recommended Rank | Alpha | VRAM (4-bit) | |-----------|-----------------|-------|-------------| | 7B | 16β32 | 32β64 | 8β12 GB | | 13B | 16 | 32 | 14β18 GB | | 70B | 8β16 | 16β32 | 40β48 GB |
Supported Dataset Formats
{"instruction": "...", "input": "...", "output": "..."}{"conversations": [{"from": "human", "value": "..."}, ...]}{"messages": [{"role": "user", "content": "..."}, ...]}Requirements
pip install transformers peft trl datasets for script executionFeedback
https://bytesagain.com/feedback/ Powered by BytesAgain | bytesagain.comβοΈ Configuration
Generate a LoRA training configuration for your model and hardware.
bash scripts/script.sh config --model llama3-8b --gpu 24gb --dataset 10000
Parameters:
--model β base model (llama3-8b, mistral-7b, qwen2-7b, phi3-mini, llama3-70b)--gpu β VRAM size (8gb, 16gb, 24gb, 40gb, 80gb)--dataset β number of training samplesestimate
Estimate VRAM usage, training time, and cost before starting.bash scripts/script.sh estimate --model mistral-7b --gpu 16gb --dataset 5000 --epochs 3
generate
Generate a ready-to-run Python training script using HuggingFace PEFT + TRL.bash scripts/script.sh generate --model llama3-8b --output train.py
validate
Check dataset format compatibility (Alpaca / ShareGPT / OpenAI Chat format).bash scripts/script.sh validate --file dataset.json --format alpaca
recommend
Recommend the best base model for your use case and hardware.bash scripts/script.sh recommend --task chat --gpu 16gb --language en
help
Show all commands.bash scripts/script.sh help