← Back to Skills Marketplace
loutai0307-prog

LoRA Toolkit

by loutai0307-prog · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
82
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install 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, co...
README (SKILL.md)

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 samples

estimate

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

  • Alpaca: {"instruction": "...", "input": "...", "output": "..."}
  • ShareGPT: {"conversations": [{"from": "human", "value": "..."}, ...]}
  • OpenAI Chat: {"messages": [{"role": "user", "content": "..."}, ...]}

Requirements

  • Python 3.8+
  • Optional: pip install transformers peft trl datasets for script execution

Feedback

https://bytesagain.com/feedback/ Powered by BytesAgain | bytesagain.com

Usage Guidance
This skill appears coherent for generating LoRA configs and training scripts, but take the following precautions before running anything it produces: 1) Review the generated train.py and any other files the script writes. The training script sets trust_remote_code=True when loading pretrained models — that means code fetched from a model repository can run on your machine. Only load models from sources you trust. 2) Verify dataset contents (no secrets) before using them in training. 3) Be aware of resource and cost implications if you run the training (GPU hours, cloud billing). 4) If you want stricter safety, remove or change trust_remote_code in the generated script and pin models to trusted repos/commits. If you need more assurance, request the full contents of the truncated validate function or a provenance/hosting URL for the skill's author and homepage.
Capability Analysis
Type: OpenClaw Skill Name: bytesagain-lora-toolkit Version: 1.0.0 The toolkit contains a shell injection vulnerability in the `validate` command within `scripts/script.sh`, where the `--file` argument is unsafely interpolated into a `python3 -c` command string. Additionally, the `generate` command produces training scripts that default to `trust_remote_code=True`, which is a high-risk configuration that allows for arbitrary code execution when loading untrusted models from HuggingFace. While the tool's logic aligns with its stated purpose of LoRA fine-tuning, these security flaws pose a significant risk to the environment.
Capability Assessment
Purpose & Capability
Name/description align with the provided shell script and SKILL.md: the tool generates configs, estimates cost/VRAM, validates dataset format, and emits a Python training script. Required resources (none declared) and included files are consistent with this purpose.
Instruction Scope
Instructions are narrowly scoped to generating configs, validating datasets, and producing a training script. However the generated Python uses trust_remote_code=True and will load pretrained models from external model repositories when executed — that can cause arbitrary code execution coming from a model repo. The shell script also creates a directory under $HOME/.local/share/bytesagain-lora-toolkit and writes files there and into the working directory (train.py) which you should review before running.
Install Mechanism
No install spec; the skill is instruction-only plus an included shell script. The README suggests pip installing well-known ML packages (transformers, peft, trl, bitsandbytes, etc.) which is expected for this use case. Nothing is downloaded from obscure URLs by the skill itself.
Credentials
The skill does not request environment variables, credentials, or access to unrelated configuration paths. It stores data under the user's home directory (local, per-user) which is proportionate for a CLI helper.
Persistence & Privilege
always:false and no special persistence requested. The script creates and uses a per-user data directory only for its own files; it does not modify other skills or global agent settings.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bytesagain-lora-toolkit
  3. After installation, invoke the skill by name or use /bytesagain-lora-toolkit
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
LoRA fine-tuning toolkit: config/estimate/generate/validate/recommend — supports Llama3/Mistral/Qwen2
Metadata
Slug bytesagain-lora-toolkit
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is LoRA Toolkit?

Configure, estimate, and generate LoRA fine-tuning scripts for LLMs. Input: base model name, dataset size, GPU spec. Output: training config, PEFT script, co... It is an AI Agent Skill for Claude Code / OpenClaw, with 82 downloads so far.

How do I install LoRA Toolkit?

Run "/install bytesagain-lora-toolkit" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is LoRA Toolkit free?

Yes, LoRA Toolkit is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does LoRA Toolkit support?

LoRA Toolkit is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created LoRA Toolkit?

It is built and maintained by loutai0307-prog (@loutai0307-prog); the current version is v1.0.0.

💬 Comments