Views
No views yet
dsainvg/openvino-model-conv
via qwen35/scripts/convert_to_openvino.py — pure ov.convert_model on the PyTorch model
(no optimum-intel exporter).1import openvino as ov
2import numpy as np
3from transformers import AutoTokenizer
4
5core = ov.Core()
6compiled = core.compile_model("openvino_model.xml", "CPU")
7tok = AutoTokenizer.from_pretrained("durgasai299792458/qwen35-4b-openvino-split-ir")
8
9inputs = tok("Hello, world!", return_tensors="np")
10# Build state tensors (zeros) matching your max_seq budget, then call compiled(...)| File | Description |
|---|---|
openvino_model.xml / .bin | OpenVINO IR (FP16 weights) |
tokenizer.json, tokenizer_config.json | Tokeniser assets |
config.json, generation_config.json | Model config |