Skip to content

[Bug] Studio local Qwen3.5-2B QLoRA worker exits on first chat generation #7843

Closed

Description

@Imagineer99

Reproduction

  1. Fine-tune unsloth/Qwen3.5-2B with QLoRA in Studio.
  2. Select the resulting local LoRA in Chat.
  3. Send hey.

Observed

After a clean Studio restart, the model loads successfully. Generation then runs for about 65 seconds and fails with:

Error: The inference worker stopped unexpectedly while generating a response.
Details: pid=6145, exitcode=1.

The server log reaches:

Received command: generate
Starting text generation
No registered Unsloth template for <adapter-path>, using tokenizer default
This model does not support Cache instances. cache_implementation (set to dynamic) will be ignored.

No underlying worker traceback is preserved in the server log.

Local-adapter metadata probing also resolves the base model but continues probing the adapter directory itself:

Vision check subprocess failed ... Should have a model_type key in its config.json
Model config result ... is_vision=False, is_lora=True, max_position_embeddings=None
Could not get model size ... Repo id must be in the form repo_name or namespace/repo_name
Could not load native chat template ... Tokenizer class TokenizersBackend does not exist

Environment

  • GPU: RTX 5070 Ti, 16 GB
  • Platform: WSL/Linux
  • Tested commit: 8f870555d2cdf9339574896fcbefdb71f21335f4
  • Adapter weights: 42 MB; no merged model weights
  • unsloth_training_method: qlora
  • Transformers tier: 5.3.0

Expected

A short text prompt using Qwen3.5-2B QLoRA should complete on a 16 GB GPU. If the worker fails, Studio should preserve the underlying exception. Local-adapter metadata and template checks should inspect the resolved base model where appropriate.

Related: #5344 covers similar high-memory symptoms, but its documented cases involve local full checkpoints and different causes.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions