Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

distill.py fails with AttributeError: DistillQwen3VLModel has no attribute 'output_layer' when using Qwen3.5-0.8B as student/teacher

Đang mở
#1,819 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

@kevalmorabia97 đang làm issue này rồi.

Từ ngày 25/6/2026.

Đánh giá

Issue này chưa được đánh giá.

Mô tả

feature request

branch: dkorzekwa/claude_qwen35_distill (create a few days ago from modelopt main)
container: nemo_26_06

Steps to reproduce

PYTHONPATH=/workspace/Model-Optimizer:$PYTHONPATH \
torchrun --nnodes 1 --nproc_per_node 1 \
    examples/megatron_bridge/distill.py \
    --tp_size 1 \
    --teacher_hf_path /workspace/hf_models/Qwen/Qwen3.5-0.8B \
    --student_hf_path /workspace/hf_models/Qwen/Qwen3.5-0.8B \
    --student_hf_model /workspace/hf_models/Qwen/Qwen3.5-0.8B \
    --use_mock_data \
    --seq_length 512 --mbs 1 --gbs 8 --train_iters 10 \
    --kd_loss_scale 1.0 \
    --output_dir /tmp/distill_test \
    --hf_export_path /tmp/distill_test/hf

Error
AttributeError: DistillQwen3VLModel has no attribute output_layer

Full traceback location:

  • modelopt/torch/distill/mode.py:189 → _convert_for_kd
  • modelopt/torch/distill/distillation_model.py:88 → self.get_submodule(student_layer_name)
Ngôn ngữ chính
Python
Star
5.2k
Fork
736
Merge trung bình
4 ngày 2 giờ
Pull request đã merge (30 ngày)
160

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của NVIDIA/Model-Optimizer

Tất cả issue của NVIDIA/Model-Optimizer

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.