# Model migrate flagos

> Model migrate flagos is an open-source agent skill for ai models and llm tooling. Ports a new model from upstream vLLM into the vllm-plugin-FL project at v0.13.0. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/flagos-ai/skills/tree/main/skills/model-migrate-flagos
- **Repository:** https://github.com/flagos-ai/skills
- **GitHub stars:** 22
- **License:** Apache-2.0
- **Skill name:** model-migrate-flagos
- **Collection:** https://github.com/flagos-ai/skills
- **Categories:** [AI models and LLM tooling](https://ai-powered.com/categories/ai-and-llm)
- **Listing updated:** 2026-12-02

## About

This skill walks an agent through bringing a model from the latest upstream vLLM source into the vllm-plugin-FL project, which is pinned to vLLM 0.13.0. The approach copies the upstream model file as-is and then applies a catalogue of compatibility fixes, such as converting relative imports, redirecting config classes to a plugin-side config bridge, and removing APIs that do not exist in the pinned release. Registration, static review, unit and functional tests, a benchmark run with dummy weights, and a smoke-test request follow.

The final stage compares generated tokens from the local plugin server against a reference server running upstream vLLM, reporting how many leading tokens match. The skill includes shell and Python helpers for serving, benchmarking, remote reference-server control over SSH, and the comparison itself, with prompts that cover both text and image inputs.

Using it requires a local checkout of vLLM upstream, an editable install of vllm-plugin-FL, and a CUDA GPU. Model names are passed in snake_case.

## When your agent uses it

> Migrate a model from the latest vLLM upstream repository into the vllm-plugin-FL project (pinned at vLLM v0.13.0). Use this skill whenever someone wants to add support for a new model to vllm-plugin-FL, port model code from upstream vLLM, or backport a newly released model. Trigger when the user says things like "migrate X model", "add X model support", "port X from upstream vLLM", "make X work with the FL plugin", or simply "/model-migrate-flagos model_name". The model_name argument uses snake_case (e.g. qwen3_5, kimi_k25, deepseek_v4). Do NOT use for models already supported by vLLM 0.13.0 core, or for multimodal-only components that don't need backporting.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and Python scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/model-migrate-flagos)
- [Asks for: Bash(pytest:*), Bash(python3:*), Bash(git:*), Bash(vllm:*), Bash(cp:*), Bash(curl:*), Bash(bash:*), Bash(test:*)…](https://github.com/flagos-ai/skills/blob/HEAD/skills/model-migrate-flagos/SKILL.md)
- [Network calls found in its scripts](https://github.com/flagos-ai/skills/tree/HEAD/skills/model-migrate-flagos)
- [License: Apache-2.0](https://github.com/flagos-ai/skills/tree/HEAD/skills/model-migrate-flagos)

## Features

- **Upstream file copy:** Copies the model implementation directly from upstream vLLM and then patches it, rather than rewriting it by hand.
- **Compatibility patch catalog:** Documents thirteen fixes for differences between upstream vLLM and the pinned 0.13.0 release.
- **Config bridge setup:** Adds a plugin-side config class so new model types load without upgrading transformers.
- **Automated code review:** Runs a Python checker for leftover relative imports, missing APIs and registration mismatches.
- **Token-level accuracy check:** Compares generated tokens against an upstream reference server over text and image prompts.
- **Remote reference server control:** Starts, stops and inspects the upstream reference server on a remote machine over SSH.

## Good for

- Add support for a newly released model to the vllm-plugin-FL project
- Port a model class from upstream vLLM into a plugin that is pinned to an older release
- Re-run a previous model migration after upstream vLLM changes
- Check that a ported model produces the same tokens as the upstream server
- Benchmark and smoke-test a newly added model on local GPUs

## Install

### Claude Code

This skill ships in the `flagos-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add flagos-ai/skills
/plugin install flagos-skills@flagos-skills
```

Or copy only this skill to `~/.claude/skills/model-migrate-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/model-migrate-flagos &&
cp -R "$tmp/skills/model-migrate-flagos" ~/.claude/skills/model-migrate-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/model-migrate-flagos` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/model-migrate-flagos` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/model-migrate-flagos &&
cp -R "$tmp/skills/model-migrate-flagos" ~/.agents/skills/model-migrate-flagos &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/model-migrate-flagos` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/model-migrate-flagos` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/model-migrate-flagos &&
cp -R "$tmp/skills/model-migrate-flagos" ~/.cursor/skills/model-migrate-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/model-migrate-flagos` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/flagos-ai/skills.git --path skills/model-migrate-flagos
```

Or copy the folder to `~/.gemini/skills/model-migrate-flagos` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/model-migrate-flagos`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/flagos-ai/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/model-migrate-flagos &&
cp -R "$tmp/skills/model-migrate-flagos" ~/.copilot/skills/model-migrate-flagos &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/model-migrate-flagos` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/flagos-ai/skills.git
```

Then copy `skills/skills/model-migrate-flagos` into your agent's skills folder as `model-migrate-flagos`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need before Model migrate flagos runs?

It needs a copy of the upstream vLLM source, an editable install of vllm-plugin-FL, and a CUDA GPU. The skill metadata lists vLLM 0.13.0 and Python 3.8 or newer.

### Which models should I not use Model migrate flagos for?

The skill says not to use it for models that vLLM 0.13.0 already supports, or for multimodal-only components that do not need porting.

### How is the model name passed in?

As a snake_case argument such as qwen3_5 or kimi_k25, optionally followed by the upstream and plugin folder paths.

### What does the accuracy check compare?

It sends the same prompts to the local plugin server and to an upstream reference server, then compares the first tokens of each output one by one.

### How do I install Model migrate flagos in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/model-migrate-flagos to use it in all your projects, or to .claude/skills/model-migrate-flagos in one project. Or install the flagos-skills plugin, which includes it: /plugin marketplace add flagos-ai/skills, then /plugin install flagos-skills@flagos-skills.

### Does Model migrate flagos run scripts?

Yes. It runs shell and Python scripts. Its scripts contain network calls. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Model migrate flagos?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Model migrate flagos?

The closest alternatives to Model migrate flagos are Model verify flagos, Model adaptation, Runpod vllm, Jetson LLM benchmark and Nova migrate.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Model verify flagos](https://ai-powered.com/skills/model-verify-flagos): Model verify flagos is an open-source agent skill for ai models and llm tooling.
- [Model adaptation](https://ai-powered.com/skills/model-adaptation): Model adaptation is an open-source agent skill for ai models and llm tooling.
- [Runpod vllm](https://ai-powered.com/skills/runpod-vllm): Runpod vllm is an open-source agent skill for cloud and infrastructure.
- [Jetson LLM benchmark](https://ai-powered.com/skills/jetson-llm-benchmark): Jetson LLM benchmark is an open-source agent skill for ai models and llm tooling.
- [Nova migrate](https://ai-powered.com/skills/nova-migrate): Nova migrate is an open-source agent skill for ai models and llm tooling.
- [Huggingface local models](https://ai-powered.com/skills/huggingface-local-models): Huggingface local models is an open-source agent skill for ai models and llm tooling.
- [Jetson LLM serve](https://ai-powered.com/skills/jetson-llm-serve): Jetson LLM serve is an open-source agent skill for ai models and llm tooling.
- [Agent platform model registry](https://ai-powered.com/skills/agent-platform-model-registry): Agent platform model registry is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/model-migrate-flagos
