/ Модель

Характеристики

Контекст
262 144 токена
Размер весов
17,5 ГБ
Лицензия
Apache 2.0
Архитектура
qwen3_vl · dense
Базовая модель
Qwen3-VL-8B-Instruct
Библиотека
transformers
Опубликована
9 дек 2025

Qwen3-VL-8B-rslora-r32-2

Изображение и текст → текст3 профессии

Мультимодальная модель Qwen3-VL-8B, дообученная для генерации кода Qiskit 2.0, анализа квантовых диаграмм и объяснения квантовых вычислений.

48скачиваний за 30 дней0лайковвеса обновлены13 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Изображение → текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Это мультимодальная модель на основе Qwen3-VL-8B-Instruct, дообученная разработчиком samuellimabraz для задач квантовых вычислений с Qiskit 2.0. Модель использует архитектуру Qwen3-VL с 8 млрд параметров; адаптация выполнена методом rsLoRA с рангом 32 и обучением в течение двух эпох на наборе Quantum Assistant Dataset.

Модель принимает текст и изображения: она генерирует код Qiskit по описанию или диаграмме, дополняет функции, интерпретирует схемы квантовых цепей, сферы Блоха и гистограммы измерений, а также объясняет концепции квантовых вычислений. Карточка сообщает об улучшении результатов на наборах задач по генерации и дополнению кода, особенно для примеров с изображениями.

Модель ориентирована на Qiskit 2.0 и использует современные API, включая SamplerV2 и EstimatorV2. Она может ошибаться в редких случаях, слабее покрывает некоторые категории задач и специфические оптимизации оборудования IBM Quantum; сгенерированный код и алгоритмы требуют проверки перед исполнением. Лицензия — Apache-2.0.

Сценарии применения

  • генерация кода Qiskit по описанию квантового алгоритма
  • создание квантовой схемы по изображению диаграммы
  • дополнение функций Qiskit по сигнатуре и docstring
  • объяснение квантовых цепей, сфер Блоха и гистограмм измерений
  • получение ответов на вопросы о теории квантовых вычислений

Ограничения

Оптимизирована для Qiskit 2.0 и может использовать устаревшие API при работе с более ранними версиями; редкие случаи и некоторые возможности оборудования IBM Quantum покрыты ограниченно. Сгенерированный код и квантовые алгоритмы могут быть логически неверными и требуют проверки перед запуском.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Quantum Assistant: Specialization of Multimodal Models for Quantum Computing

Paper License Dataset Models Demo Qiskit GitHub W&B TensorBoard

The first multimodal Vision-Language Model specialized for quantum computing with Qiskit

Model Description

This model is a fine-tuned version of Qwen3-VL-8B-Instruct specialized for quantum computing tasks using Qiskit 2.0. This model can interpret visual representations of quantum computing: circuit diagrams, Bloch spheres, and measurement histograms.

The model was trained using Rank-Stabilized Low-Rank Adaptation (rsLoRA) with rank 32 for 2 epochs on the Quantum Assistant Dataset, achieving significant improvements on multimodal quantum code generation tasks.

Key Capabilities

  • Code Generation: Generate complete Qiskit code from natural language descriptions
  • Function Completion: Complete function bodies from signatures and docstrings
  • Visual Understanding: Interpret quantum circuit diagrams, Bloch spheres, and histograms
  • Conceptual Explanations: Answer questions about quantum computing theory
  • Qiskit 2.0 Compliant: Uses modern APIs (SamplerV2, EstimatorV2, generate_preset_pass_manager)

Evaluation Results

Evaluation was conducted on three complementary benchmarks: Qiskit HumanEval (151 function completion problems), Qiskit HumanEval Hard (151 code generation problems), and the synthetic test set (1,290 samples). Models were served via vLLM on A100 80GB PCIe with greedy decoding (temperature 0).

Consolidated Results

QHE: Qiskit HumanEval (function completion) · QHE Hard: code generation · †Qwen2.5-Coder-14B-Qiskit evaluated only on text samples (55% of synthetic dataset)

Key Improvements

MetricImprovement vs Baseline
Qiskit HumanEval Pass@1+11.26 pp (32.45% → 43.71%)
Qiskit HumanEval Hard Pass@1+16.56 pp (11.92% → 28.48%)
Multimodal Code Pass@1+25.89 pp (37.50% → 63.39%)
Text-only Code Pass@1+15.21 pp (30.24% → 45.45%)

Multimodal Advantage

The most significant differential is in multimodal samples: the fine-tuned model achieves 63.39% Pass@1 on image-based code generation vs 45.45% on text-only (+17.94 pp), validating that training on visual-textual samples develops domain-specific visual understanding capabilities.

Performance by Category

CategoryPass@1vs Baseline
quantum_info_and_operators65.76%+37.74 pp
circuits_and_gates61.47%+25.46 pp
hardware_and_providers57.94%+50.00 pp
transpilation_and_compilation57.43%+38.62 pp
algorithms_and_applications52.27%+28.18 pp
noise_and_error_mitigation42.86%+38.10 pp
primitives_and_execution32.18%+21.84 pp

Training Strategy

The experimental strategy was organized in two phases: PEFT technique selection and hyperparameter optimization.

Phase 1: PEFT Variant Comparison

Five LoRA variants were compared with controlled configuration (r=16, α=32, 1 epoch):

VariantEval Loss ↓Eval Accuracy ↑Runtime (s)
rsLoRA0.6220.8181,060
DoRA0.6220.8182,307
rsLoRA (frozen aligner)0.6230.8171,057
LoRA (vanilla)0.6460.8121,056
PiSSA0.6570.8121,172
OLoRA0.7420.7941,067

Key findings:

  • rsLoRA and DoRA achieved equivalent performance (Eval Loss 0.622)
  • DoRA has 2.18× computational overhead (2,307s vs 1,060s) due to magnitude-direction decomposition
  • rsLoRA selected for optimal performance-efficiency trade-off

Phase 2: Rank and Epoch Optimization

With rsLoRA selected, the impact of adapter rank and training duration was investigated:

ConfigurationEval Loss ↓Eval Accuracy ↑Notes
r=32, 1 epoch0.6070.821Optimal trade-off
r=64, 1 epoch0.6090.822Marginal improvement
r=16, 1 epoch0.6220.818Baseline rsLoRA
r=32, 2 epochs0.6380.825Slight overfitting
r=128, 3 epochs0.7890.822Severe overfitting

Conclusions: rsLoRA with r=32 and 1-2 epochs maximizes generalization while avoiding memorization of the synthetic dataset.

Model Collection

This model is part of the Quantum Assistant collection. All models are merged versions ready for inference:

ModelConfigurationDescription
Qwen3-VL-8B-rslora-r32-2rsLoRA r=32, 2 epochsBest overall performance
Qwen3-VL-8B-rslora-r32rsLoRA r=32, 1 epochBest generalization
Qwen3-VL-8B-rslora-r64rsLoRA r=64, 1 epochHigher capacity
Qwen3-VL-8B-rslora-r128rsLoRA r=128, 1 epochMaximum capacity
Qwen3-VL-8B-loraLoRA r=16, 1 epochVanilla LoRA
Qwen3-VL-8B-doraDoRA r=16, 1 epochMagnitude-direction decomposition
Qwen3-VL-8B-pissaPiSSA r=16, 1 epochSVD initialization
Qwen3-VL-8B-oloraOLoRA r=16, 1 epochQR orthonormal initialization
Qwen3-VL-8B-rslora-frozenrsLoRA r=16, frozen alignerAblation study
Qwen3-VL-8B-rslorarsLoRA r=16, 1 epochBaseline rsLoRA

Usage

With vLLM

python -m vllm.entrypoints.openai.api_server \
    --host 0.0.0.0 \
    --port 8000 \
    --model samuellimabraz/Qwen3-VL-8B-rslora-r32-2 \
    --gpu-memory-utilization 0.92 \
    --max-model-len 12288 \
    --max-num-seqs 16 \
    --max-num-batched-tokens 49152 \
    --enable-chunked-prefill \
    --enable-prefix-caching

With Transformers

from transformers import Qwen3VLForConditionalGeneration, AutoProcessor
from qwen_vl_utils import process_vision_info

model = Qwen3VLForConditionalGeneration.from_pretrained(
    "samuellimabraz/Qwen3-VL-8B-rslora-r32-2",
    torch_dtype="auto",
    device_map="auto"
)
processor = AutoProcessor.from_pretrained("samuellimabraz/Qwen3-VL-8B-rslora-r32-2")

messages = [
    {"role": "system", "content": "You are a quantum computing expert assistant specializing in Qiskit."},
    {"role": "user", "content": "Create a function that builds a 3-qubit GHZ state and returns the circuit."}
]

messages_with_image = [
    {"role": "system", "content": "You are a quantum computing expert assistant specializing in Qiskit."},
    {"role": "user", "content": [
        {"type": "image", "image": "path/to/circuit.png"},
        {"type": "text", "text": "Implement the quantum circuit shown in the image."}
    ]}
]

text = processor.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
image_inputs, video_inputs = process_vision_info(messages)
inputs = processor(
    text=[text],
    images=image_inputs,
    videos=video_inputs,
    padding=True,
    return_tensors="pt"
).to(model.device)

generated_ids = model.generate(**inputs, max_new_tokens=1024)
output = processor.batch_decode(
    generated_ids[:, inputs.input_ids.shape[1]:], 
    skip_special_tokens=True
)[0]
print(output)

Training Details

Dataset

  • Training Data: Quantum Assistant Dataset
  • Train Samples: 5,837 (45.1% multimodal)
  • Validation Samples: 1,239 (45.2% multimodal)
  • Task Distribution: 30% function completion, 32% code generation, 38% QA
  • Categories: 7 quantum computing domains

Training Configuration

ParameterValue
Base ModelQwen/Qwen3-VL-8B-Instruct
PEFT MethodrsLoRA (Rank-Stabilized LoRA)
Rank (r)32
Alpha (α)64
Dropout0.15
Target Modulesall-linear
Learning Rate2e-4
LR SchedulerCosine
Weight Decay0.1
Warmup Steps20
Epochs2
Batch Size32
Precisionbfloat16
Frameworkms-swift

Freezing Strategy

ComponentStatus
Vision Encoder (ViT)❄️ Frozen
Vision-Language Aligner🔥 Trainable
Language Model (LLM)🔥 Trainable

Training Infrastructure

  • GPU: NVIDIA RTX PRO 6000 Blackwell Server Edition (96GB VRAM)
  • Training Time: ~35.8 minutes (2 epochs)
  • Tracking: Weights & Biases | TensorBoard

System Prompt

You are a quantum computing expert assistant specializing in Qiskit.
Provide accurate, clear, and well-structured responses about quantum computing concepts,
algorithms, and code implementation. Use Qiskit 2.0 best practices.

Intended Uses & Limitations

Intended Uses

  • Educational assistance: Learning quantum computing concepts with Qiskit
  • Code generation: Creating Qiskit circuits from descriptions or diagrams
  • Documentation: Understanding quantum circuit visualizations
  • Research prototyping: Rapid development of quantum algorithms

Limitations

  1. Domain specificity: Optimized for Qiskit 2.0; may generate deprecated APIs for older versions
  2. Dataset size: Trained on 5,837 samples; may underperform on rare edge cases
  3. Category imbalance: Better performance on circuits_and_gates than primitives_and_execution
  4. Hardware specifics: Limited coverage of IBM Quantum hardware-specific optimizations
  5. Execution: Generated code requires verification before running on real quantum hardware

Bias and Risks

  • Model may perpetuate patterns from training data
  • Visual understanding limited to common diagram styles in Qiskit documentation
  • May generate syntactically correct but logically incorrect quantum algorithms
  • Should not be used for production quantum computing without human review

Citation

If you use this model in your research, please cite:

@article{braz2026quantumassistant,
  title     = {Quantum Assistant: Specialization of Multimodal Vision-Language Models for Quantum Computing},
  author    = {Braz, Samuel Lima and Leite, Jo{\~a}o Paulo Reus Rodrigues},
  journal   = {Expert Systems with Applications},
  year      = {2026},
  issn      = {0957-4174},
  doi       = {10.1016/j.eswa.2026.133931},
  url       = {https://doi.org/10.1016/j.eswa.2026.133931},
  publisher = {Elsevier}
}

Related Resources

Acknowledgments

  • IBM Quantum and Qiskit team for open-source documentation
  • Qwen Team for the base model
  • UNIFEI (Universidade Federal de Itajubá) for academic support
  • Advisor: Prof. João Paulo Reus Rodrigues Leite

License

This model is released under the Apache 2.0 License.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers

Можно запустить

Подбираем GPU…

Класс архитектуры
Qwen3VLForConditionalGeneration
Ревизия весов
061b138

0 моделей