ONNX Model Zoo

marcusmi4n/abeja-qwen2.5-7b-japanese-qnn

By marcusmi4n · ↓ 0 · ♥ 1 · Updated 2025-09-02

What's in this repo

This page lists the files in marcusmi4n/abeja-qwen2.5-7b-japanese-qnn, including model.onnx, model_quantized.onnx and more.

  • 4 ONNX models (.onnx files)
  • 57 files, including 31 .json, 7 .safetensors, 4 .onnx, 4 .serialized, 4 .so, 3 .txt
  • Last updated 2025-09-02

ONNX files

File Size Download
onnx/prefill/model.onnx — Download
onnx/token_gen/model.onnx — Download
quantized_onnx/prefill/model_quantized.onnx — Download
quantized_onnx/token_gen/model_quantized.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

ABEJA Qwen 2.5 7B Japanese - QNN Optimized

This repository contains the ABEJA Qwen 2.5 7B Japanese model optimized for Qualcomm Neural Network (QNN) deployment.

Model Details

  • Base Model: abeja/Qwen2.5-7B-Japanese
  • Architecture: Qwen2ForCausalLM
  • Parameters: ~7.6B
  • Language: Japanese (primary), English (secondary)
  • Quantization: 4-bit NF4
  • Target Hardware: Snapdragon 8cx Gen 2+ (SM8350)

Available Formats

1. Quantized PyTorch Model

  • Path: quantized_simple/
  • Format: 4-bit NF4 quantized
  • Size: ~4.5GB (reduced from ~15GB)
  • Usage: Direct inference with transformers

2. ONNX Models

  • Path: onnx/
  • Models:
    • prefill/model.onnx - Context prefill
    • token_gen/model.onnx - Token generation
  • Usage: Cross-platform inference

3. Quantized ONNX Models

  • Path: quantized_onnx/
  • Format: Dynamic quantization (INT8)
  • Usage: Optimized ONNX inference

4. QNN Compiled Models

  • Path: qnn_compiled/
  • Format: Qualcomm Neural Network format
  • Target: Snapdragon devices
  • Usage: Native ARM64 deployment

Usage

Quantized PyTorch Model

from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("marcusmi4n/abeja-qwen2.5-7b-japanese-qnn", subfolder="quantized_simple")
tokenizer = AutoTokenizer.from_pretrained("marcusmi4n/abeja-qwen2.5-7b-japanese-qnn", subfolder="quantized_simple")

# Japanese text generation
inputs = tokenizer("こんにちは、私は", return_tensors="pt")
outputs = model.generate(**inputs, max_length=100, do_sample=True)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

ONNX Inference

import onnxruntime as ort

# Load ONNX model
session = ort.InferenceSession("marcusmi4n/abeja-qwen2.5-7b-japanese-qnn/onnx/prefill/model.onnx")
# Run inference...

QNN Deployment

# Deploy to Snapdragon device
adb push marcusmi4n/abeja-qwen2.5-7b-japanese-qnn/qnn_compiled/ /data/local/tmp/qnn_model/
# Use QNN runtime for inference

Performance

  • Quantization: 75% size reduction
  • Speed: 2-3x faster inference
  • Memory: ~4.5GB RAM usage
  • Tokens/sec: 8-15 tokens/sec on Snapdragon 8cx Gen 2+

Hardware Compatibility

  • ✅ Snapdragon 8cx Gen 2+
  • ✅ Snapdragon 8cx Gen 3
  • ✅ Snapdragon 8 Gen 1+
  • ✅ Windows on ARM devices
  • ✅ Microsoft Surface Pro X
  • ✅ Dell Latitude 7420

Files Structure

marcusmi4n/abeja-qwen2.5-7b-japanese-qnn/
├── quantized_simple/          # 4-bit quantized PyTorch model
│   ├── model.safetensors
│   ├── config.json
│   ├── tokenizer.json
│   └── model_info.json
├── onnx/                      # ONNX models
│   ├── prefill/model.onnx
│   └── token_gen/model.onnx
├── quantized_onnx/            # Quantized ONNX models
│   ├── prefill/model_quantized.onnx
│   └── token_gen/model_quantized.onnx
├── qnn_compiled/              # QNN compiled models
│   ├── prefill/
│   ├── token_gen/
│   └── deployment_info.json
└── README.md                  # This file

License

Apache 2.0 - Same as base ABEJA Qwen 2.5 model

Citation

@misc{abeja-qwen25-qnn,
  title={ABEJA Qwen 2.5 7B Japanese - QNN Optimized},
  author={QNN Conversion Pipeline},
  year={2025},
  url={https://huggingface.co/marcusmi4n/abeja-qwen2.5-7b-japanese-qnn}
}

Base Model Citation

Please cite the original ABEJA Qwen 2.5 paper:

@article{abeja-qwen2.5,
  title={ABEJA Qwen 2.5: Japanese Language Model},
  author={ABEJA Inc.},
  journal={arXiv preprint},
  year={2024}
}

Model info

text-generation transformers
transformers onnx safetensors qwen2.5 japanese text-generation pytorch quantized qnn qualcomm ja en
↓ 0 ♥ 1

Created: 2025-09-01

Updated: 2025-09-02

View on Hugging Face

Files (57)

.gitattributes
README.md
deployment_info.json
merges.txt
onnx/model_info.json
onnx/prefill/model.onnx ONNX
onnx/token_gen/model.onnx ONNX
prefill/model.json
prefill/model.serialized
prefill/model.so
qnn_compiled/deployment_info.json
qnn_compiled/merges.txt
qnn_compiled/prefill/model.json
qnn_compiled/prefill/model.serialized
qnn_compiled/prefill/model.so
qnn_compiled/special_tokens_map.json
qnn_compiled/token_gen/model.json
qnn_compiled/token_gen/model.serialized
qnn_compiled/token_gen/model.so
qnn_compiled/tokenizer.json
qnn_compiled/tokenizer_config.json
qnn_compiled/vocab.json
quantized/LICENSE
quantized/config.json
quantized/generation_config.json
quantized/model-00001-of-00004.safetensors
quantized/model-00002-of-00004.safetensors
quantized/model-00003-of-00004.safetensors
quantized/model-00004-of-00004.safetensors
quantized/model.safetensors.index.json
quantized/model_info.json
quantized/tokenizer.json
quantized/tokenizer_config.json
quantized_onnx/prefill/model_quantized.onnx ONNX
quantized_onnx/quantization_info.json
quantized_onnx/token_gen/model_quantized.onnx ONNX
quantized_simple/added_tokens.json
quantized_simple/chat_template.jinja
quantized_simple/config.json
quantized_simple/generation_config.json
quantized_simple/merges.txt
quantized_simple/model-00001-of-00003.safetensors
quantized_simple/model-00002-of-00003.safetensors
quantized_simple/model-00003-of-00003.safetensors
quantized_simple/model.safetensors.index.json
quantized_simple/model_info.json
quantized_simple/special_tokens_map.json
quantized_simple/tokenizer.json
quantized_simple/tokenizer_config.json
quantized_simple/vocab.json
special_tokens_map.json
token_gen/model.json
token_gen/model.serialized
token_gen/model.so
tokenizer.json
tokenizer_config.json
vocab.json

Related models