CommunityCodierung & Entwicklunggithub.com

jeffallan/Feinabstimmungs-Experte

Verwenden Sie dieses Skill, um LLMs feinzustimmen, benutzerdefinierte Modelle zu trainieren oder Grundmodelle für bestimmte Aufgaben anzupassen. Rufen Sie es auf, um LoRA/QLoRA-Adapter zu konfigurieren, JSONL-Trainingsdatensätze vorzubereiten und Hyperparameter für Feinabstimmungsdurchläufe festzulegen.

Was ist Feinabstimmungs-Experte?

Dieser Skill ist speziell für Entwickler und KI-Ingenieure konzipiert, die große Sprachmodelle (LLMs) durch Feinabstimmung für spezifische Aufgaben optimieren möchten. Er unterstützt eine breite Palette von Feinabstimmungstechniken, darunter LoRA (Low-Rank Adaptation), QLoRA (Quantized Low-Rank Adaptation) und PEFT (Parameter-Efficient Fine-Tuning) von Hugging Face, sowie die Integration mit OpenAI’s Feinabstimmungs-API. Der Skill hilft bei der Erstellung und Bereinigung von Trainingsdatensätzen im JSONL-Format, der Konfiguration von Hyperparametern wie Lernrate und Batch-Größe sowie der Verwaltung des gesamten Feinabstimmungsprozesses, einschließlich Anweisungs-Tuning, Reinforcement Learning from Human Feedback (RLHF) und Direct Preference Optimization (DPO). Darüber hinaus ermöglicht er die Quantisierung und Bereitstellung feinabgestimmter Modelle, um eine effiziente Inferenz zu gewährleisten. Der Skill ist plattformunabhängig und kann in Umgebungen wie Claude Code, Cursor und Codex eingesetzt werden, wodurch er sich für eine Vielzahl von Entwicklungsworkflows eignet.

Funktioniert mit~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/jeffallan/claude-skills/tree/main/skills/fine-tuning-expert

Installed? Explore more Codierung & Entwicklung skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

In Ihrer bevorzugten KI fragen

Öffnet einen neuen Chat, in dem dieser Agent-Skill bereits geladen ist.

Dokumentation

Was macht Feinabstimmungs-Experte?

Verwenden Sie dieses Skill, wenn Sie LLMs feinabstimmen, benutzerdefinierte Modelle trainieren oder Grundmodelle an spezifische Aufgaben anpassen. Rufen Sie es auf für die Konfiguration von LoRA-/QLoRA-Adaptern, die Vorbereitung von JSONL-Trainingsdatensätzen, die Festlegung von Hyperparametern für Feinabstimmungsdurchläufe, Adaptertraining, Transferlernen, Feinabstimmung mit Hugging Face PEFT, OpenAI-Feinabstimmung, Anweisungs-Tuning, RLHF, DPO oder die Quantisierung und Bereitstellung feinabgestimmter Modelle. Auslösebegriffe sind: LoRA, QLoRA, PEFT, Feinabstimmung, Adapter-Tuning, LLM-Training, Modelltraining, benutzerdefiniertes Modell.

Verwendung

Dieser Skill wird aktiviert, wenn Sie Begriffe wie "Feinabstimmung", "LoRA", "Adapter" oder "Modelltraining" in Ihrer Anfrage verwenden. Er bietet Anleitung und Codebeispiele für die Feinabstimmung von LLMs unter Verwendung von Frameworks wie Hugging Face Transformers, PEFT und den OpenAI-APIs.

Unterstützte Techniken

  • LoRA/QLoRA: Effiziente Adapterbasiertes Fine-Tuning mit geringem Speicherverbrauch.
  • PEFT: Parameter-effizientes Fine-Tuning für große Modelle.
  • OpenAI Fine-Tuning: Integration mit der OpenAI-Feinabstimmungs-API.
  • RLHF/DPO: Reinforcement Learning from Human Feedback und Direct Preference Optimization.
  • Anweisungs-Tuning: Training von Modellen, um Anweisungen genau zu befolgen.
  • Quantisierung: Reduzierung der Modellgröße für effiziente Bereitstellung.

Beispielbefehle

# Beispiel für Feinabstimmung mit Hugging Face PEFT
train_peft_adapter --model-name "meta-llama/Llama-2-7b-hf" \
    --dataset-path "./training_data.jsonl" \
    --output-dir "./fine_tuned_model" \
    --learning-rate 2e-4 \
    --num-epochs 3
# Beispiel für JSONL-Datasets-Vorbereitung
import json

dataset = [
    {"instruction": "Erkläre die Theorie der Relativität", "response": "Die Theorie der Relativität..."},
    {"instruction": "Schreibe ein Gedicht über KI", "response": "In Silikonschichten, wo Daten fließen..."}
]

with open("training_data.jsonl", "w", encoding="utf-8") as f:
    for item in dataset:
        f.write(json.dumps(item) + "\n")

Konfiguration

Um diesen Skill optimal zu nutzen, müssen Sie möglicherweise Umgebungsvariablen für API-Schlüssel oder Modellkonfigurationen festlegen.

VariableBeschreibung
OPENAI_API_KEYAPI-Schlüssel für OpenAI-Feinabstimmung
HF_TOKENHugging Face Token für den Zugriff auf gated Modelle
MODEL_NAMEStandardmodellname (optional)

Fehlerbehebung

  • Ungenügender Speicher: Verwenden Sie QLoRA oder Quantisierung, um den Speicherverbrauch zu reduzieren.
  • Schlechte Konvergenz: Passen Sie die Lernrate an oder verwenden Sie eine Lernratenplaner.
  • Datensatzformatierung: Stellen Sie sicher, dass das JSONL-Dataset die richtige Struktur hat (z.B. mit Feldern wie "instruction" und "response").

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

jeffallan/angular-architect

Generates Angular 17+ standalone components, configures advanced routing with lazy loading and guards, implements NgRx state management, applies RxJS patterns, and optimizes bundle performance. Use when building Angular 17+ applications with standalone components or signals, setting up NgRx stores, establishing RxJS reactive patterns, performance tuning, or writing Angular tests for enterprise apps.

jeffallan/api-designer

Use when designing REST or GraphQL APIs, creating OpenAPI specifications, or planning API architecture. Invoke for resource modeling, versioning strategies, pagination patterns, error handling standards.

jeffallan/architecture-designer

Use when designing new high-level system architecture, reviewing existing designs, or making architectural decisions. Invoke to create architecture diagrams, write Architecture Decision Records (ADRs), evaluate technology trade-offs, design component interactions, and plan for scalability. Use for system design, architecture review, microservices structuring, ADR authoring, scalability planning, and infrastructure pattern selection — distinct from code-level design patterns or database-only design tasks.

jeffallan/atlassian-mcp

Integrates with Atlassian products to manage project tracking and documentation via MCP protocol. Use when querying Jira issues with JQL filters, creating and updating tickets with custom fields, searching or editing Confluence pages with CQL, managing sprints and backlogs, setting up MCP server authentication, syncing documentation, or debugging Atlassian API integrations.

jeffallan/chaos-engineer

Designs chaos experiments, creates failure injection frameworks, and facilitates game day exercises for distributed systems — producing runbooks, experiment manifests, rollback procedures, and post-mortem templates. Use when designing chaos experiments, implementing failure injection frameworks, or conducting game day exercises. Invoke for chaos experiments, resilience testing, blast radius control, game days, antifragile systems, fault injection, Chaos Monkey, Litmus Chaos.

jeffallan/cli-developer

Use when building CLI tools, implementing argument parsing, or adding interactive prompts. Invoke for parsing flags and subcommands, displaying progress bars and spinners, generating bash/zsh/fish completion scripts, CLI design, shell completions, and cross-platform terminal applications using commander, click, typer, or cobra.

jeffallan/cloud-architect

Designs cloud architectures, creates migration plans, generates cost optimization recommendations, and produces disaster recovery strategies across AWS, Azure, and GCP. Use when designing cloud architectures, planning migrations, or optimizing multi-cloud deployments. Invoke for Well-Architected Framework, cost optimization, disaster recovery, landing zones, security architecture, serverless design.

jeffallan/code-documenter

Generates, formats, and validates technical documentation — including docstrings, OpenAPI/Swagger specs, JSDoc annotations, doc portals, and user guides. Use when adding docstrings to functions or classes, creating API documentation, building documentation sites, or writing tutorials and user guides. Invoke for OpenAPI/Swagger specs, JSDoc, doc portals, getting started guides.

jeffallan/code-reviewer

Analyzes code diffs and files to identify bugs, security vulnerabilities (SQL injection, XSS, insecure deserialization), code smells, N+1 queries, naming issues, and architectural concerns, then produces a structured review report with prioritized, actionable feedback. Use when reviewing pull requests, conducting code quality audits, identifying refactoring opportunities, or checking for security issues. Invoke for PR reviews, code quality checks, refactoring suggestions, review code, code quality. Complements specialized skills (security-reviewer, test-master) by providing broad-scope review across correctness, performance, maintainability, and test coverage in a single pass.

jeffallan/cpp-pro

Writes, optimizes, and debugs C++ applications using modern C++20/23 features, template metaprogramming, and high-performance systems techniques. Use when building or refactoring C++ code requiring concepts, ranges, coroutines, SIMD optimization, or careful memory management — or when addressing performance bottlenecks, concurrency issues, and build system configuration with CMake.

jeffallan/csharp-developer

Use when building C# applications with .NET 8+, ASP.NET Core APIs, or Blazor web apps. Builds REST APIs using minimal or controller-based routing, configures database access with Entity Framework Core, implements async patterns and cancellation, structures applications with CQRS via MediatR, and scaffolds Blazor components with state management. Invoke for C#, .NET, ASP.NET Core, Blazor, Entity Framework, EF Core, Minimal API, MAUI, SignalR.

jeffallan/database-optimizer

Optimizes database queries and improves performance across PostgreSQL and MySQL systems. Use when investigating slow queries, analyzing execution plans, or optimizing database performance. Invoke for index design, query rewrites, configuration tuning, partitioning strategies, lock contention resolution.

jeffallan/debugging-wizard

Parses error messages, traces execution flow through stack traces, correlates log entries to identify failure points, and applies systematic hypothesis-driven methodology to isolate and resolve bugs. Use when investigating errors, analyzing stack traces, finding root causes of unexpected behavior, troubleshooting crashes, or performing log analysis, error investigation, or root cause analysis.

jeffallan/devops-engineer

Creates Dockerfiles, configures CI/CD pipelines, writes Kubernetes manifests, and generates Terraform/Pulumi infrastructure templates. Handles deployment automation, GitOps configuration, incident response runbooks, and internal developer platform tooling. Use when setting up CI/CD pipelines, containerizing applications, managing infrastructure as code, deploying to Kubernetes clusters, configuring cloud platforms, automating releases, or responding to production incidents. Invoke for pipelines, Docker, Kubernetes, GitOps, Terraform, GitHub Actions, on-call, or platform engineering.

jeffallan/django-expert

Use when building Django web applications or REST APIs with Django REST Framework. Invoke when working with settings.py, models.py, manage.py, or any Django project file. Creates Django models with proper indexes, optimizes ORM queries using select_related/prefetch_related, builds DRF serializers and viewsets, and configures JWT authentication. Trigger terms: Django, DRF, Django REST Framework, Django ORM, Django model, serializer, viewset, Python web.

jeffallan/dotnet-core-expert

Use when building .NET 8 applications with minimal APIs, clean architecture, or cloud-native microservices. Invoke for Entity Framework Core, CQRS with MediatR, JWT authentication, AOT compilation.

jeffallan/embedded-systems

Use when developing firmware for microcontrollers, implementing RTOS applications, or optimizing power consumption. Invoke for STM32, ESP32, FreeRTOS, bare-metal, power optimization, real-time systems, configure peripherals, write interrupt handlers, implement DMA transfers, debug timing issues.

jeffallan/fastapi-expert

Use when building high-performance async Python APIs with FastAPI and Pydantic V2. Invoke to create REST endpoints, define Pydantic models, implement authentication flows, set up async SQLAlchemy database operations, add JWT authentication, build WebSocket endpoints, or generate OpenAPI documentation. Trigger terms: FastAPI, Pydantic, async Python, Python API, REST API Python, SQLAlchemy async, JWT authentication, OpenAPI, Swagger Python.

jeffallan/feature-forge

Conducts structured requirements workshops to produce feature specifications, user stories, EARS-format functional requirements, acceptance criteria, and implementation checklists. Use when defining new features, gathering requirements, or writing specifications. Invoke for feature definition, requirements gathering, user stories, EARS format specs, PRDs, acceptance criteria, or requirement matrices.

jeffallan/flutter-expert

Use when building cross-platform applications with Flutter 3+ and Dart. Invoke for widget development, Riverpod/Bloc state management, GoRouter navigation, platform-specific implementations, performance optimization.

Verwandte Skills