Downloads · 30 days
19
26% of all-time downloads
helenai/ibm-granite-granite-8b-code-base-ov
ibm-granite-granite-8b-code-base-ov is a text generation model from helenai. Use it when you need the model to write or continue text. It is set up for transformers.
This is the ibm-granite/granite-8b-code-base model converted to OpenVINO with INT8 weights compression for accelerated inference.
Downloads · 30 days
19
26% of all-time downloads
All-time downloads
72
Public
Repo size
12.3 GB
Likes
0
Public
Click a slice to open those files.
.bin8.1 GB · 100%
From the Hugging Face model README
This is the ibm-granite/granite-8b-code-base model converted to OpenVINO with INT8 weights compression for accelerated inference.
An example of how to do inference on this model:
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer, pipeline
# model_id should be set to either a local directory or a model available on the HuggingFace hub.
model_id = "helenai/ibm-granite-granite-8b-code-base-ov"
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForCausalLM.from_pretrained(model_id)
pipe = pipeline("text-generation", model=model, tokenizer=tokenizer)
result = pipe("hello world")
print(result)