Repository navigation
Conversation
Adds AMD Token Lab, an OpenAI-compatible inference API on AMD Instinct GPUs for AMD AI Developer Program members (https://api.tokenlab.amd.com/v1), with seven chat models: DeepSeek V4.1 Flash, DeepSeek V4 Flash, Gemma 4 31B IT, MiniCPM5 2B, MiniCPM-V 4.7 1B, MiniCPM-V 4.7 35B-A3B and Qwen3.8 27B.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds AMD Token Lab, an OpenAI-compatible inference API running on AMD Instinct GPUs. It's available to AMD AI Developer Program members: sign in at https://notebooks.amd.com/tokenlab to get a key.
providers/amd-tokenlab/provider.toml: OpenAI-compatible endpointhttps://api.tokenlab.amd.com/v1,AMD_TOKENLAB_API_KEYproviders/amd-tokenlab/logo.svg: the official AMD Token Lab lockup, embedded as a mask overcurrentColorso it follows light and dark themesproviders/amd-tokenlab/models/*.toml: 7 chat models, all override-only on existing lab files:DeepSeek-V4.1-Flash,DeepSeek-V4-Flash,Gemma-4-31B-IT,MiniCPM5-2B,MiniCPM-V-4.7-1B,MiniCPM-V-4.7-35B-A3B,Qwen3.8-27BThis is a separate host from
providers/amd(AMD Token Factory, China endpointdeveloper.amd.com.cn): different base URL, keys and limits, so it gets its own provider ID.Data sources (live-tested with a Token Lab key)
GET /v1/modelsreturnscontext_length,input_modalitiesandsupported_parametersper model. Overrides only where Token Lab differs from the lab file:/v1/chat/completionsvalidatesreasoning_effortasnone|minimal|low|medium|high|xhigh|max(anything else returns 400). Controls follow the same models inproviders/amd.json_schemaresponse_formatreturned schema-valid JSON on all 7 models.tools/tool_choiceproducedfinish_reason: "tool_calls"on 6 models. MiniCPM-V 4.7 1B accepted tools but didn't call one in a single test (noted in its file).image_urlwas described correctly by DeepSeek V4.1 Flash, Gemma 4, both MiniCPM-V models and Qwen3.8.providers/amd.Not included: the decision models listed by the host (
Clef,d3,d3-flash). Token Lab'ssystemoneendpoint wasn't verified.Checks
bun validatepasses.bun run v1:check: the only v1 changes are the addedamd-tokenlabprovider fields. It also flags genericimagemodalities on the two MiniCPM-V files; the host doesn't document exact MIME types, andproviders/amduses the same generic value for these models.@ai-sdk/openai-compatible, this base URL): multi-step coding tasks with tool calls, file edits and test runs completed on DeepSeek V4.1 Flash, DeepSeek V4 Flash, Gemma 4 31B and Qwen3.8 27B.