Downloads · 30 days
11
15% of all-time downloads
rpanchum/falcon3-7b-instruct-int4-sym-ov
falcon3-7b-instruct-int4-sym-ov is a text generation model from rpanchum. Use it when you need the model to write or continue text. It is set up for openvino.
This repository contains the tiiuae/Falcon3-7B-Instruct model optimized for inference with Intel's OpenVINO runtime. The model has been quantized to INT4 using the AWQ quantization scheme for improved performance whil…
Downloads · 30 days
11
15% of all-time downloads
All-time downloads
73
Public
Repo size
4.1 GB
Likes
0
Public
Click a slice to open those files.
.bin4.1 GB · 100%
From the Hugging Face model README
This repository contains the tiiuae/Falcon3-7B-Instruct model optimized for inference with Intel's OpenVINO runtime. The model has been quantized to INT4 using the AWQ quantization scheme for improved performance while maintaining quality.
This model was converted from the original Hugging Face model to OpenVINO format using the Optimum Intel library. The following optimization command was used:
optimum-cli export openvino \
-m tiiuae/Falcon3-7B-Instruct \
--weight-format int4 \
--sym \
--dataset auto \
--awq \
--group-size -1 \
falcon3-7b-instruct-int4-sym-ov
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer
# Load tokenizer and model
model_id = "rpanchum/falcon3-7b-instruct-int4-sym-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForCausalLM.from_pretrained(model_id)
# Generate text
prompt = "Write a short story about a robot learning to paint:"
input_ids = tokenizer(prompt, return_tensors="pt")
output = model.generate(
**input_ids,
max_new_tokens=512,
temperature=0.7,
top_p=0.9,
)
response = tokenizer.decode(output[0], skip_special_tokens=True)
print(response)
pip install openvino-genai huggingface_hub
import huggingface_hub as hf_hub
model_id = "rpanchum/falcon3-7b-instruct-int4-sym-ov"
model_path = "falcon3-7b-instruct-int4-sym-ov"
hf_hub.snapshot_download(model_id, local_dir=model_path)
import openvino_genai as ov_genai
device = "CPU"
pipe = ov_genai.LLMPipeline(model_path, device)
print(pipe.generate("What is OpenVINO?", max_length=200))
This model inherits the license of the original tiiuae/Falcon3-7B-Instruct model.