Skip to main content

title: LLM Unsloth Studio description: Use models served by Unsloth Studio with the LLM command-line tool

Installation

Install this plugin in the same environment as LLM:

llm install llm-unslothstudio

For local development, install this checkout as an editable plugin:

llm install -e .

Configuration

Start Unsloth Studio with a model loaded. unsloth run is an alias for unsloth studio run and uses http://127.0.0.1:8888 by default:

unsloth run --model "unsloth/Qwen3.8-27B-GGUF"

If the GGUF repository contains multiple quantizations, select one explicitly:

unsloth run --model "unsloth/Qwen3.8-27B-GGUF" --gguf-variant "UD-Q4_K_XL"

Running unsloth studio without the run command starts the Studio service but does not necessarily load a model. If Studio is already running, load the model in the UI or enable Settings > API > Model auto-switch. Model auto-switch lets Studio load the model requested by an LLM command.

Create an API key in Settings > API, then store it with LLM:

llm keys set unslothstudio

Paste the sk-unsloth-... key when prompted. You can use the UNSLOTH_STUDIO_API_KEY environment variable instead.

Set UNSLOTH_STUDIO_URL when Studio uses another port or host. Supply the server root or its /v1 URL, and use the same port when starting Studio:

unsloth run --model "unsloth/Qwen3.8-27B-GGUF" --port 8000
$env:UNSLOTH_STUDIO_URL = "http://127.0.0.1:8000"

Usage

The plugin discovers models from GET /v1/models when LLM starts. List them:

llm models list

Each model has a canonical ID prefixed with unsloth: that avoids ambiguity with other providers:

llm -m "unsloth/Qwen3.8-27B-GGUF" "Write a haiku about GPUs"

The original Studio model ID is also registered as an alias, so this shorter command selects the same model:

llm -m "unsloth/Qwen3.8-27B-GGUF" "Write a haiku about GPUs"

When Studio exposes one model, the short unsloth alias is also available:

llm -m unsloth "Explain QLoRA in one paragraph"

The plugin supports streaming, conversations, image attachments, tools, JSON schemas, async models, and token usage through LLM's OpenAI-compatible model implementation.

Development

Install dependencies and run the checks with uv:

uv sync
uv run pytest
uv run ruff check .
uv run ruff format --check .

Metadata

Release files for llm-unslothstudio 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for llm-unslothstudio 0.1.0
File Size Uploaded
llm_unslothstudio-0.1.0.tar.gz 9.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for llm-unslothstudio 0.1.0
File Interpreter ABI Platform
llm_unslothstudio-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 18.3 kB

Release files / llm_unslothstudio-0.1.0.tar.gz

Download URL llm_unslothstudio-0.1.0.tar.gz
Size 9.6 kB
Tags Source
SHA-256 checksum
How to use checksums
66dca956364b045a99b15fea8cdbc703baae0b5cf38a382411b4add3c6c75111
BLAKE2b-256 checksum
How to use checksums
3e0bbff4e1a482c55d577f75ccc0f20d3a6f7f8a278685dc0f59cdedbf72f692
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / llm_unslothstudio-0.1.0-py3-none-any.whl

Download URL llm_unslothstudio-0.1.0-py3-none-any.whl
Size 8.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
aa9a9496a5d6f3ad0bbf12f4530cdae687fc1da8ea5a19354060c54c93a1169f
BLAKE2b-256 checksum
How to use checksums
295d371d895be9ba18e73956bcb318ce7059f9f3cde080acc4ff1f67ffeecaa7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release history Release notifications | RSS feed

0.2.0

2 release files

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page