vllm.models.qwen3_5
¶
Qwen3.5 model — hardware-isolated entry point.
Only the NVIDIA variant migrates to the new eager + breakable CUDA-graph
modelling code with explicit fused kernels. ROCm and all other platforms keep
the previous torch.compile implementation in vllm/model_executor/models/
so their behavior is unchanged.
Modules:
-
nvidia–
Classes:
Qwen3_5ForConditionalGeneration
¶
Bases: Qwen3VLForConditionalGeneration, IsHybrid, SupportsReplaySSM
Methods:
-
forward–Run forward pass for Qwen3.5.
Source code in vllm/model_executor/models/qwen3_5.py
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 | |
forward(input_ids, positions, intermediate_tensors=None, inputs_embeds=None, **kwargs)
¶
Run forward pass for Qwen3.5.
Parameters:
-
(input_ids¶Tensor) –Flattened (concatenated) input_ids corresponding to a batch.
-
(positions¶Tensor) –Flattened (concatenated) position ids corresponding to a batch. NOTE: If mrope is enabled (default setting for Qwen3VL opensource models), the shape will be
(3, seq_len), otherwise it will be(seq_len,). -
(intermediate_tensors¶IntermediateTensors | None, default:None) –Intermediate tensors from previous pipeline stages.
-
(inputs_embeds¶Tensor | None, default:None) –Pre-computed input embeddings.
-
(**kwargs¶object, default:{}) –Additional keyword arguments including: - pixel_values: Pixel values to be fed to a model.
Noneif no images are passed. - image_grid_thw: Tensor(n_images, 3)of image 3D grid in LLM.Noneif no images are passed. - pixel_values_videos: Pixel values of videos to be fed to a model.Noneif no videos are passed. - video_grid_thw: Tensor(n_videos, 3)of video 3D grid in LLM.Noneif no videos are passed.