Skip to content

Forge: Qwen3.5-27B GGUF conversion fails on _reorder_v_heads #781

Closed as not planned

Description

@joelteply

airc-queue card

Coordinates work via the AIRC queue substrate (airc#562). Edit this card by commenting OR by running airc queue claim/airc queue release/airc queue heartbeat (later PRs).

{
  "kind": "airc-queue-card-v1",
  "id": "#781",
  "owner": "claude-tab-1",
  "status": "claimed",
  "evidence": "bulk-adopted from continuum unlabeled-open backlog (Joel directive 2026-05-14)",
  "next_action": "triage scope + assign or close stale"
}

Close this issue when the work is done (status=merged/abandoned).

Original issue body

Pre-adoption body

Problem

convert_hf_to_gguf.py fails converting our forged qwen3.5-27b-code-forged to GGUF:

RuntimeError: shape '[16, 2, 1, 1]' is invalid for input of size 48

Error in _reorder_v_heads — a per-layer tensor has unexpected dimensions.

Model config

  • num_attention_heads: 24
  • num_key_value_heads: 4
  • hidden_size: 5120
  • head_dim: 256
  • architectures: ['Qwen3_5ForCausalLM']
  • model_type: qwen3_5

Environment

  • BigMama RTX 5090
  • llama.cpp latest (has Qwen3.5 support via Qwen3_5TextModel)
  • Safetensors from continuum-ai/qwen3.5-27b-code-forged

Likely cause

Our forging process may have modified some attention-related tensors (linear attention V reordering). The converter expects a specific tensor shape that our forged model doesn't match.

Workaround options

  1. Debug the specific tensor that fails and fix the shape in our forged model
  2. Use the vanilla Qwen3.5-27B GGUF and apply our LoRA adapters at runtime
  3. Convert with --no-tensor-first-split or other converter flags

Impact

Blocks the device ladder for 32GB+ devices (MacBook Pro, 3090, 5090). 4B GGUF works fine for 8-16GB devices.

🤖 Generated with Claude Code

Activity

  1. added
    airc-queue
    on May 14, 2026
  2. github-actions commented on Jul 16, 2026

    @github-actions

    This issue is stale because it has been open for 60 days with no activity. Please comment or update this issue to keep it active.

  3. github-actions commented on Aug 17, 2026

    @github-actions

    This issue was closed because it has been inactive for 30 days since being marked as stale.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    airc-queuestale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions