OU

ototao/unsloth-mcp-server

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

8 stars 6 forks 品質 69 トレンド 11

Unsloth 用の MCP サーバー - LLM の微調整を 2x で 80% 短縮するライブラリ

概要

Unsloth 用の MCP サーバー - LLM を微調整するライブラリは、80% のメモリを削減します。 Unslothは、大規模な言語モデルの微調整の効率を飛躍的に改善するライブラリです。 - : 標準方式と比較して2倍高速微調整 - : 80%未満VRAM使用量、コンシューマーGPUのより大きなモデルの微調整が可能 - : 最大13倍のコンテキスト長(例えば、80GB GPUのLlama 3.3の89Kトークン) - : モデルの品質や性能の損失なし Unslothは、OpenAIのTriton言語、最適化されたbackpropagation、ダイナミック4ビットの量子化で書かれたカスタムCUDAカーネルでこれらの改善を実現します。 - Llama、Mistral、Phi、Gemmaおよび他のモデルのための微調整を最適化 - 効率的なトレーニングのための4ビット定量化 - 拡張されたコンテキスト長さのサポート - モデルの読み込み、微調整、および推論のためのシンプルなAPI - さまざまなフォーマット(GGUF、ハッギングフェイスなど)にエクスポート ソース(以下)からインストールします。 npm (name, bin, server) でパッケージを用意します.

概要(AI 翻訳)

Unsloth 用の MCP サーバー - LLM を微調整するライブラリは、80% のメモリを削減します。

##Unslothとは?

Unslothは、大規模な言語モデルの微調整の効率を飛躍的に改善するライブラリです。

  • 速度:標準的な方法と比較して2xより速く微調整 -Memory:80%未満のVRAM使用、コンシューマーGPU上でより大きなモデルの微調整が可能
  • コンテキスト長:最大13倍のコンテキスト長 (例えば、80GB GPUのLlama 3.3の89Kトークン)
  • Accuracy:モデルの品質や性能の損失なし

Unslothは、OpenAIのTriton言語、最適化されたbackpropagation、ダイナミック4ビットの量子化で書かれたカスタムCUDAカーネルでこれらの改善を実現します。

##特徴

  • Llama、Mistral、Phi、Gemmaおよび他のモデルのための微調整を最大限に活用して下さい
  • 効率的なトレーニングのための4ビット定量化
  • 拡張されたコンテキスト長さのサポート
  • モデルローディング、微調整および推論のための簡単なAPI
  • 各種フォーマット(GGUF、ハッギングフェイスなど)へのエクスポート

インストール

現在の状態: ソース(下)からインストールします。 パッケージはnpmに用意されています ([name]]), [bin]], [[[server.json]]レジストリマニフェストが配置されているが、まだ**ではない

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

Unsloth MCP Server

An MCP server for Unsloth - a library that makes LLM fine-tuning 2x faster with 80% less memory.

What is Unsloth?

Unsloth is a library that dramatically improves the efficiency of fine-tuning large language models:

  • Speed: 2x faster fine-tuning compared to standard methods
  • Memory: 80% less VRAM usage, allowing fine-tuning of larger models on consumer GPUs
  • Context Length: Up to 13x longer context lengths (e.g., 89K tokens for Llama 3.3 on 80GB GPUs)
  • Accuracy: No loss in model quality or performance

Unsloth achieves these improvements through custom CUDA kernels written in OpenAI’s Triton language, optimized backpropagation, and dynamic 4-bit quantization.

Features

  • Optimize fine-tuning for Llama, Mistral, Phi, Gemma, and other models
  • 4-bit quantization for efficient training
  • Extended context length support
  • Simple API for model loading, fine-tuning, and inference
  • Export to various formats (GGUF, Hugging Face, etc.)

Installation

Current state: install from source (below). The package is prepared for npm (name, bin, server.json registry manifest are in place) but is not yet published — the npx-based config in the next section works only after the npm publish lands.

  1. Install Unsloth on the machine that will run the fine-tuning: pip install unsloth

  2. Build the server from source:

    git clone https://github.com/OtotaO/unsloth-mcp-server.git
    cd unsloth-mcp-server
    npm install
    npm run build
    
  3. Point your MCP client (Claude Desktop, Claude Code, Cline, Cursor, …) at the built entrypoint:

    {
      "mcpServers": {
        "unsloth": {
          "command": "node",
          "args": ["/path/to/unsloth-mcp-server/build/index.js"],
          "env": { "HUGGINGFACE_TOKEN": "your_token_here" }
        }
      }
    }
    

    HUGGINGFACE_TOKEN is optional (only needed for gated/private models). Omit the env block if you don’t use one.

After npm publish (planned)

Once published to npm as unsloth-mcp-server, the same clients can run it over stdio via npx with no clone/build:

{
  "mcpServers": {
    "unsloth": {
      "command": "npx",
      "args": ["-y", "unsloth-mcp-server"],
      "env": { "HUGGINGFACE_TOKEN": "your_token_here" }
    }
  }
}

For Claude Code: claude mcp add unsloth -- npx -y unsloth-mcp-server

Available Tools

check_installation

Verify if Unsloth is properly installed on your system.

Parameters: None

Example:

const result = await use_mcp_tool({
  server_name: "unsloth",
  tool_name: "check_installation",
  arguments: {}
});

list_supported_models

GitHub で README 全文を見る

インストール

npx -y unsloth-mcp-server
MCP 初心者?mcpskill.org のガイドから始めましょう →

設定

{ "mcpServers": { "unsloth": { "command": "node", "args": ["/path/to/unsloth-mcp-server/build/index.js"], "env": { "HUGGINGFACE_TOKEN": "your_token_here" } } } }