{"record":{"id":"6daaa4e69e18c703","repo":"unslothai/unsloth","slug":"load-timed-out","errorCode":null,"errorMessage":"load timed out","messagePattern":"load timed out","errorType":"exception","errorClass":"RuntimeError","httpStatus":null,"severity":"warning","filePath":"scripts/perf_verify.py","lineNumber":82,"sourceCode":"    token = os.environ.get(\"HF_TOKEN\")\n\n    def load(mode_speed = None, mode_mem = None):\n        backend.begin_load(\n            args.model,\n            gguf_filename = args.gguf,\n            hf_token = token,\n            speed_mode = mode_speed,\n            memory_mode = mode_mem,\n        )\n        deadline = time.time() + 2400\n        while time.time() < deadline:\n            ph = backend.load_progress().get(\"phase\")\n            if ph == \"ready\":\n                return backend.status()\n            if ph == \"error\":\n                raise RuntimeError(f\"load error: {backend.load_progress()}\")\n            time.sleep(0.5)\n        raise RuntimeError(\"load timed out\")\n\n    def gen():\n        torch.cuda.synchronize()\n        t0 = time.time()\n        img = backend.generate(\n            prompt = args.prompt,\n            width = args.width,\n            height = args.height,\n            steps = args.steps,\n            guidance = 0.0,\n            seed = args.seed,\n            batch_size = 1,\n        )[\"images\"][0]\n        torch.cuda.synchronize()\n        return img, time.time() - t0\n\n    def timed(\n        mode_speed,","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/unslothai/unsloth/blob/203007d19051dcd2ae33876786d117c99f6b0368/scripts/perf_verify.py#L64-L100","documentation":"Thrown by parseMaxOutputTokens (chat-providers-dialog.tsx:503-507) when the parsed integer is below CUSTOM_MAX_OUTPUT_TOKENS_MIN, defined as 64 in external-providers.ts:265. A provider-level output-token ceiling below 64 would truncate essentially every reply, so the dialog enforces a floor.","triggerScenarios":"Entering a value from 0 to 63 (the regex allows leading zeros, so '0'..'0063' also hit it) into the Max Tokens limit field and saving the provider.","commonSituations":"Users entering '1' to 'minimize' answers; confusing max tokens with temperature-style small decimals; testing edge values; entering '0' expecting 'no limit'.","solutions":["Enter 64 or higher, e.g. '256' or '1024'.","Leave the field empty to use the provider's default rather than trying to express 'unlimited' with 0."],"exampleFix":"// before\n16\n\n// after\n64","handlingStrategy":"validation","validationCode":"const CUSTOM_MAX_OUTPUT_TOKENS_MIN = 64;\nfunction meetsMinTokens(input: string): boolean {\n  const t = input.trim();\n  return t === '' || (/^\\d+$/.test(t) && Number(t) >= CUSTOM_MAX_OUTPUT_TOKENS_MIN);\n}","typeGuard":null,"tryCatchPattern":null,"preventionTips":["Show 'Minimum 64' helper text under the field.","Clamp small values up to the minimum on blur instead of erroring on submit.","Document that 'no limit' is expressed by leaving the field empty, never by 0."],"tags":["validation","form","numbers","providers","frontend"],"backgroundTag":null,"analyzedSha":"203007d19051dcd2ae33876786d117c99f6b0368","analyzedAt":"2026-08-15T02:48:39.846Z","schemaVersion":2},"datasetVersion":"2026-08-15T17:31:12.345Z"}