Downloads · 30 days
13
7% of all-time downloads
rpanchum/jais-13b-int4-sym-ov
jais-13b-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. The card lists the license as apache-2.0.
This repository contains the inceptionai/jais-13b model...
Downloads · 30 days
13
7% of all-time downloads
All-time downloads
178
Public
Repo size
7.2 GB
Likes
0
Public
Click a slice to open those files.
.bin7.2 GB · 100%
From the Hugging Face model README
This repository contains the inceptionai/jais-13b model...
This repository contains the inceptionai/jais-13b 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.
Jais-13B is a bilingual model that supports both Arabic and English text generation. The model can:
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 inceptionai/jais-13b \
--weight-format int4 \
--sym \
--dataset auto \
--awq \
--group-size -1 \
--trust-remote-code \
jais-13b-int4-sym-ov
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer
# Load tokenizer and model
model_id = "rpanchum/jais-13b-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/jais-13b-int4-sym-ov"
model_path = "jais-13b-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("ما هو الذكاء الاصطناعي؟", max_length=200)) # "What is AI?" in Arabic
print(pipe.generate("What is artificial intelligence?", max_length=200))
This model inherits the license of the original inceptionai/jais-13b model.