跳到正文
TakoAPI
返回技能列表

ollama-model-tuner

由 gblockchainnetwork 提供

DevOps & Cloud
436下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Optimize Ollama models/prompts using local datasets, eval metrics, and iterative tuning.

描述

该技能的功能

Tunes Ollama models locally using custom datasets, prompt engineering, and LoRA fine-tuning. Supports A/B testing prompts, customizing Modelfiles, and benchmarking model performance against eval metrics. No cloud services or external APIs required.

Runs the entire tuning loop on local hardware, so sensitive training data never leaves the machine and there are no per-token API costs.

何时使用

  • Fine-tuning a local llama3 model for document classification
  • A/B testing system prompts to find the best performer for a chatbot
  • Adding a LoRA adapter trained on company-specific terminology
  • Benchmarking response quality before and after Modelfile changes
  • Iterating on prompt templates using a local JSONL eval dataset

示例工作流

输入

User asks: tune llama3 on my support ticket dataset for intent classification

智能体
  1. 1

    Load JSONL dataset from ./data.json

  2. 2

    Run scripts/tune.py with --model llama3 and --task classification

  3. 3

    Apply prompt templates from prompts/system.md

  4. 4

    Execute eval loop and record accuracy metrics

  5. 5

    Output tuned Modelfile and benchmark report

输出

Fine-tuned Modelfile with updated system prompt and eval metrics summary

前置要求

  • Ollama 0.3+ installed locally

安装

clawhub install gblockchainnetwork/ollama-model-tuner

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接