runbios-mcp 0.6.4-dev.406 → 0.6.4-dev.408

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/server.js CHANGED
@@ -857,9 +857,9 @@ launchGates = resolveLaunchGates(), allowedTools, consoleUpload = false) {
857
857
  validation_rows: z.number().int().min(0).max(50_000_000).optional()
858
858
  .describe("Validation rows held out and never trained on (0 turns validation off). Allowed: 100 (or 5% when that is fewer) up to 40% of the training rows; unset, 5% capped at 1,000. Preflight returns the exact range. Do not send with eval_split_ratio."),
859
859
  precision: z.enum(["bf16", "fp8"]).optional()
860
- .describe("Training precision. Offer only what get_managed_training_options lists for the model and adapter; bf16 is the default."),
860
+ .describe("Training precision for this model and adapter. bf16 is the default. Use an option supported by the selected training configuration."),
861
861
  optim: z.enum(["adamw_torch_fused", "adamw_8bit"]).optional()
862
- .describe("Optimizer state: adamw_torch_fused (16-bit, default, most accurate) or adamw_8bit (less memory). Offer only what get_managed_training_options lists."),
862
+ .describe("Optimizer state for the selected training configuration. adamw_torch_fused is the 16-bit default. adamw_8bit uses less memory."),
863
863
  eval_steps: z.number().int().positive().optional().describe("Evaluate every N optimizer steps when a validation split exists."),
864
864
  save_steps: z.number().int().positive().optional().describe("Checkpoint interval in optimizer steps."),
865
865
  early_stopping_patience: z.number().int().min(0).max(20).optional()
@@ -1081,7 +1081,7 @@ get_inference_status instead of asserting them.
1081
1081
  2. introspect_api_key - Discover your API key's permissions, scopes, and bound workspace
1082
1082
  3. get_wallet_balance - Check your credits before creating a deployment
1083
1083
  4. search_models / list_models - Find a model from the hosted catalog
1084
- 5. get_model_config - Recommended settings for a chosen model
1084
+ 5. get_model_config - Read published architecture, parameter counts and context length
1085
1085
  6. list_supported_architectures - Which architectures can be served
1086
1086
  7. get_managed_training_options - the context lengths, precisions and optimizer states each model and adapter offers (the platform provides the training resources; never offer GPUs to the customer)
1087
1087
  8. list_integrations / search_huggingface_datasets / preview_huggingface_dataset - Discover Hub sources and inspect subsets/splits
@@ -1180,7 +1180,7 @@ get_inference_status instead of asserting them.
1180
1180
  2. introspect_api_key - Discover your API key's permissions, scopes, and bound workspace
1181
1181
  3. get_wallet_balance - Check if you have enough credits before training
1182
1182
  4. search_models / list_models - Find the right base model from the hosted catalog
1183
- 5. get_model_config - Get recommended settings for your chosen model
1183
+ 5. get_model_config - Read published architecture, parameter counts and context length
1184
1184
  6. list_supported_architectures - Check which architectures can be trained or served
1185
1185
  7. get_training_capabilities - Read the authoritative training contract; call this before building automated payloads
1186
1186
  7a. get_managed_training_options - With managed_training on: the context lengths, precisions and optimizer states a model can be trained with; offer only these
@@ -1265,9 +1265,9 @@ If a started job loses its training resources it rests at 'interrupted' (nothing
1265
1265
  - Use early stopping if loss increases for several steps`,
1266
1266
  models: `# Model Catalog
1267
1267
 
1268
- Run BiOS serves a curated catalog of models hosted in its own storage — every
1269
- listed model is supported for training and serving, and these are
1270
- the ONLY models that can be trained or deployed. The catalog is the source of
1268
+ Run BiOS serves a curated catalog of hosted base models. Each entry carries
1269
+ trainSupported and deploySupported. Validate the proposed configuration with
1270
+ the corresponding preflight before creating a job or deployment. The catalog is the source of
1271
1271
  truth: call list_models for everything currently hosted, or search_models to
1272
1272
  filter by name, provider, or size. A model that is not in the catalog is not
1273
1273
  hosted yet — ask an admin to mirror it.
@@ -1296,7 +1296,7 @@ language models — but the live catalog always wins over any list.
1296
1296
  - For maximum quality: a 70B-class model (requires multi-GPU)
1297
1297
 
1298
1298
  Use search_models to find hosted models by name or provider.
1299
- Use get_model_config to see what training methods work with a specific model.`,
1299
+ Read published architecture and size with get_model_config. For training methods and defaults, read get_training_capabilities. Check the model and adapter with get_managed_training_options when managed training is enabled, then validate the proposed job with preflight_training_job.`,
1300
1300
  datasets: `# Dataset Format Guide
1301
1301
 
1302
1302
  ## One file type, one shape per training method
@@ -1622,7 +1622,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1622
1622
  const data = await client.api("/api/api-keys/introspect");
1623
1623
  // Where the loop is gated, IAM's loop tools and descriptions are removed:
1624
1624
  // the answer must not advertise what tools/list hides (src/config.ts).
1625
- return json(withoutGatedLoopIntrospection(data, launchGates));
1625
+ return json(withoutGatedLoopIntrospection(data, launchGates, allowedTools && registeredTools));
1626
1626
  });
1627
1627
  /* ══════════════════════════════════════════════════════════════════════════ */
1628
1628
  /* TOOL: get_wallet_balance */
@@ -1634,9 +1634,10 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1634
1634
  /* ══════════════════════════════════════════════════════════════════════════ */
1635
1635
  /* TOOL: search_models */
1636
1636
  /* ══════════════════════════════════════════════════════════════════════════ */
1637
- server.tool("search_models", launchGates.training
1638
- ? "Search the Run BiOS model catalog — the platform's own hosted models. These are the ONLY models that can be deployed on Run BiOS; a model that is not listed is not hosted yet (ask an admin to mirror it). Filter by name, provider, or parameter count. Returns model id, author, parameter counts, architecture, and downloads/likes for each result."
1639
- : "Search the Run BiOS model catalog — the platform's own hosted models. These are the ONLY models that can be fine-tuned or deployed on Run BiOS; a model that is not listed is not hosted yet (ask an admin to mirror it). Filter by name, provider, or parameter count. Returns model id, author, parameter counts, architecture, and downloads/likes for each result.", {
1637
+ server.tool("search_models", "Find hosted base models in the Run BiOS catalog by name, provider or maximum parameter count. Returns the first page of matches, their IDs, architecture, parameter counts and total matches."
1638
+ + (launchGates.training
1639
+ ? " Check deploySupported before planning a dedicated deployment."
1640
+ : " Check trainSupported or deploySupported before planning training or a dedicated deployment."), {
1640
1641
  query: z.string().optional().describe("Search by model name (e.g., 'llama', 'mistral', 'phi', 'qwen')"),
1641
1642
  provider: z.string().optional().describe("Filter by provider/author (e.g., 'meta-llama', 'mistralai', 'microsoft', 'Qwen')"),
1642
1643
  max_params: z.string().optional().describe("Maximum parameter count (e.g., '7B', '13B', '70B')"),
@@ -1653,9 +1654,11 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1653
1654
  /* ══════════════════════════════════════════════════════════════════════════ */
1654
1655
  /* TOOL: list_models */
1655
1656
  /* ══════════════════════════════════════════════════════════════════════════ */
1656
- server.tool("list_models", launchGates.training
1657
- ? "List every model hosted on Run BiOS — the platform's own registry, mirrored in Run BiOS storage (never a live Hugging Face listing). These are the only models that can be deployed. Call this before create_inference to pick a valid model id; use search_models to filter the same catalog by text."
1658
- : "List every model hosted on Run BiOS — the platform's own registry, mirrored in Run BiOS storage (never a live Hugging Face listing). These are the only models that can be fine-tuned or deployed. Call this before create_training_job or create_inference to pick a valid model id; use search_models to filter the same catalog by text.", {
1657
+ server.tool("list_models", "List one page of hosted base models in the Run BiOS catalog. Rows include model ID, architecture and parameter counts."
1658
+ + (launchGates.training
1659
+ ? " Check deploySupported when choosing a base for a dedicated deployment."
1660
+ : " Check trainSupported or deploySupported when choosing a base for training or a dedicated deployment.")
1661
+ + " Pass next_offset as offset to read the next page.", {
1659
1662
  type: z.enum(["all", "llm", "vlm"]).optional().describe("Filter by model surface (default: all)."),
1660
1663
  sort: z.enum(["downloads", "likes", "trending", "name"]).optional().describe("Sort order (default: downloads)."),
1661
1664
  limit: z.number().int().min(1).max(60).optional().describe("Page size (default 24, max 60)."),
@@ -1761,19 +1764,20 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1761
1764
  /* ══════════════════════════════════════════════════════════════════════════ */
1762
1765
  /* TOOL: get_model_config */
1763
1766
  /* ══════════════════════════════════════════════════════════════════════════ */
1764
- server.tool("get_model_config", launchGates.training
1765
- ? "Get configuration recommendations for a specific model hosted on Run BiOS (see list_models). Returns supported training methods and default hyperparameters."
1766
- : "Get training configuration recommendations for a specific model hosted on Run BiOS (see list_models). Returns supported training methods and default hyperparameters. Use this after search_models to plan your training job.", {
1767
+ server.tool("get_model_config", "Read the published architecture and size of one hosted model by catalog ID. Returns modelId, model_type, architectures, totalParams and activeParams in billions, isMoE, maxContext in tokens, and resolved. Withheld counts return resolved=false and null values. maxContext can be null even for a resolved model."
1768
+ + (!allowedTools || allowedTools.has("get_training_capabilities")
1769
+ ? " Use get_training_capabilities for enabled training methods and hyperparameter defaults."
1770
+ : ""), {
1767
1771
  model: z.string().describe("Full model id from the Run BiOS catalog (e.g., 'meta-llama/Llama-3.1-8B-Instruct')"),
1768
1772
  model_revision: z
1769
1773
  .string()
1770
1774
  .max(256)
1771
1775
  .optional()
1772
- .describe("Model branch, tag, or commit. The response returns the exact immutable commit used for sizing."),
1776
+ .describe("Optional compatibility input, ignored. This lookup reads the current catalog record by model ID."),
1773
1777
  integration_id: z
1774
1778
  .string()
1775
1779
  .optional()
1776
- .describe("Legacy no-op for catalog models — hosted models are never gated. Integrations are used for Hugging Face dataset imports."),
1780
+ .describe("Optional compatibility input, ignored. This catalog lookup uses no external integration."),
1777
1781
  }, async ({ model }) => {
1778
1782
  const data = await client.api("/api/public/model-config", { params: { id: model } });
1779
1783
  return json(data);
@@ -1807,7 +1811,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
1807
1811
  /* ══════════════════════════════════════════════════════════════════════════ */
1808
1812
  /* TOOL: get_gpu_pricing */
1809
1813
  /* ══════════════════════════════════════════════════════════════════════════ */
1810
- server.tool("get_gpu_pricing", "Get current GPU pricing and availability. Returns all available GPU types with display name, VRAM in GB, per-second cost, availability status, and supported model sizes. No authentication required.", {}, async () => {
1814
+ server.tool("get_gpu_pricing", "Read GPU types, VRAM, stock and hourly prices. Each gpus entry includes gpu_type, vram_gb, available, available_count and price_per_hour_cents in US cents per GPU-hour. Check stale and last_updated before quoting availability or a price.", {}, async () => {
1811
1815
  const data = await client.api("/api/public/gpu-pricing");
1812
1816
  return json(data);
1813
1817
  });
@@ -2319,7 +2323,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2319
2323
  /* ══════════════════════════════════════════════════════════════════════════ */
2320
2324
  /* TOOL: preview_dataset */
2321
2325
  /* ══════════════════════════════════════════════════════════════════════════ */
2322
- server.tool("preview_dataset", "Preview the first rows of a dataset to inspect its structure, column names, and content before training. Useful for verifying the dataset format is correct.", {
2326
+ server.tool("preview_dataset", "Read one page of dataset rows to inspect columns, content and training format. The first page is the default. Pass next_page as page to continue.", {
2323
2327
  dataset_id: z.string().describe("Dataset ID (e.g., 'ds_abc123')"),
2324
2328
  rows: z.number().int().min(1).max(50).optional().describe("Rows per page (default: 10, max: 50)"),
2325
2329
  page: z.number().int().min(1).optional().describe("1-based page of rows. Read later pages with next_page; never claim a page is the whole dataset."),
@@ -2457,7 +2461,10 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2457
2461
  /* ══════════════════════════════════════════════════════════════════════════ */
2458
2462
  /* TOOL: get_training_capabilities */
2459
2463
  /* ══════════════════════════════════════════════════════════════════════════ */
2460
- server.tool("get_training_capabilities", "Return the authoritative training contract Run BiOS enforces today: enabled and disabled methods, algorithms and adapters; exact hyperparameter names, aliases, types, defaults, enums and ranges; dependencies and incompatibilities. contract_version/schema_version identify the contract you are reading. Call this before constructing an automated training payload instead of relying on a hard-coded client list. What a given model can be trained with is per model: inspect get_recommended_gpu.model_support.available_methods, then preflight_training_job, before offering or creating any method and adapter combination.", {}, async () => {
2464
+ server.tool("get_training_capabilities", "Return the authoritative training contract Run BiOS enforces today: enabled and disabled methods, algorithms and adapters; exact hyperparameter names, aliases, types, defaults, enums and ranges; dependencies and incompatibilities. contract_version/schema_version identify the contract you are reading. Call this before constructing an automated training payload instead of relying on a hard-coded client list."
2465
+ + (!allowedTools || allowedTools.has("get_managed_training_options") ? " With managed training, use get_managed_training_options to check a model, method and adapter." : "")
2466
+ + (!allowedTools || allowedTools.has("get_recommended_gpu") ? " With customer-selected hardware, inspect get_recommended_gpu.model_support.available_methods for that model." : "")
2467
+ + (!launchGates.training && (!allowedTools || allowedTools.has("preflight_training_job")) ? " Validate the proposed settings with preflight_training_job." : ""), {}, async () => {
2461
2468
  const data = await client.api("/api/training/capabilities");
2462
2469
  // The contract used to carry image_compatibility — the training-engine image
2463
2470
  // VERSION range it was written against. training-service no longer emits it;
@@ -2589,7 +2596,7 @@ create (1-5 choices), and the queue itself stays opt-in.`,
2589
2596
  /* ══════════════════════════════════════════════════════════════════════════ */
2590
2597
  /* TOOL: list_training_jobs */
2591
2598
  /* ══════════════════════════════════════════════════════════════════════════ */
2592
- server.tool("list_training_jobs", "List training jobs with their status, progress percentage, base model, training method, GPU type, cost so far, and timestamps. The default list holds running, in-progress and completed jobs only: stopped runs (ended because someone asked; each carries stop_origin 'user' or 'platform') are returned only with status='stopped', and failed runs (ended by an error) only with status='failed'. The two are different facts and never share a filter.", {
2599
+ server.tool("list_training_jobs", "Read one page of training jobs with their status, progress, base model, method, GPU type, cost so far and timestamps. Pass next_offset as offset to continue. The default list holds running, in-progress and completed jobs only: stopped runs (ended because someone asked; each carries stop_origin 'user' or 'platform') are returned only with status='stopped', and failed runs (ended by an error) only with status='failed'. The two are different facts and never share a filter.", {
2593
2600
  status: z
2594
2601
  .enum(["running", "completed", "stopped", "queued", "securing", "booked", "interrupted", "failed"])
2595
2602
  .optional()