Downloads · 30 days
6
7% of all-time downloads
CelesteImperia/Qwen2.5-7B-Instruct-OpenVINO-INT4
Qwen2.5-7B-Instruct-OpenVINO-INT4 is a text generation model from CelesteImperia. Use it when you need the model to write or continue text. It is set up for openvino. The card lists the license as apache-2.0.
Downloads · 30 days
6
7% of all-time downloads
All-time downloads
90
Public
Repo size
4.5 GB
Likes
0
Public
Click a slice to open those files.
.bin4.5 GB · 100%
From the Hugging Face model README
This repository contains an optimized OpenVINO™ IR version of Alibaba Cloud's Qwen2.5-7B-Instruct, quantized to INT4 precision using NNCF. It is designed for high-performance reasoning and tool-calling on local Windows workstations.
To run this model locally using the optimum-intel library:
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer
model_id = "CelesteImperia/Qwen2.5-7B-Instruct-OpenVINO-INT4"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForCausalLM.from_pretrained(model_id)
prompt = "Write a high-performance C# interface for an AI-driven factory system."
messages = [
{"role": "user", "content": prompt},
]
input_ids = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt")
outputs = model.generate(input_ids, max_new_tokens=512)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
using LLama.Common;
using LLama;
// 1. Initialize the OpenVINO Model for Qwen 2.5
var parameters = new ModelParams("path/to/openvino_model.xml")
{
ContextSize = 8192, // Qwen supports larger contexts
GpuLayerCount = 0
};
// 2. Load and Execute
using var weights = LLamaWeights.LoadFromFile(parameters);
using var context = weights.CreateContext(parameters);
var executor = new StatelessExecutor(weights, parameters);
// 3. Run Reasoning Task
var chatHistory = new ChatHistory();
chatHistory.AddMessage(AuthorRole.User, "How can I optimize this Qwen 7B model for my factory's local NPU?");
foreach (var text in executor.InferAsync(chatHistory, new InferenceParams { MaxTokens = 512 }))
{
Console.Write(text);
}
Maintaining a dual-GPU AI workstation and hosting high-bandwidth models requires significant resources. If our open-source tools power your projects, consider supporting our development:
| Platform | Support Link |
|---|---|
| Global & India | Support via Razorpay |
Scan to support via UPI (India Only):
<img src="https://huggingface.co/datasets/CelesteImperia/Assets/resolve/main/QrCode.jpeg" width="200">This model is released under the Apache 2.0 License.
Connect with the architect: Abhishek Jaiswal on LinkedIn