Downloads · 30 days
10
2% of all-time downloads
nsbendre25/llama-3-8B-Instruct-ov-fp16-int4-sym
llama-3-8B-Instruct-ov-fp16-int4-sym is a text generation model from nsbendre25. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.
This is a version of the original Meta-Llama-3-8B-Instruct model converted to OpenVINO™ IR (Intermediate Representation) format for optimized inference on Intel® hardware. The model is created using the examples shown…
Downloads · 30 days
10
2% of all-time downloads
All-time downloads
598
Public
Repo size
5.3 GB
Likes
1
Public
Click a slice to open those files.
.bin5.3 GB · 100%
From the Hugging Face model README
This is a version of the original Meta-Llama-3-8B-Instruct model converted to OpenVINO™ IR (Intermediate Representation) format for optimized inference on Intel® hardware. The model is created using the examples shown in OpenVINO™ Notebooks repository.
This model is designed for advanced natural language understanding and generation tasks, ideal for academic researchers and developers in commercial settings looking to integrate efficient AI capabilities into their applications. It is not to be used for creating or promoting harmful or illegal content as per the guidelines outlined in the Meta Llama 3 Acceptable Use Policy.
This model is released under the Meta Llama 3 Community License. Redistribution requires inclusion of this license and a citation to the original model. Modifications and derivative works must prominently display "Built with Meta Llama 3" and adhere to the redistribution policies detailed in the original model license terms.
For more information on the parameters, refer to the OpenVINO™ 2024.1.0 documentation
Install packages required for using Optimum Intel integration with the OpenVINO™ backend:
pip install --upgrade --upgrade-strategy eager "optimum[openvino]"
Run model inference:
from optimum.intel.openvino import OVModelForCausalLM
from transformers import AutoTokenizer
model_id = "nsbendre25/Llama-3-8B-Instruct-ov_fp16-int4_sym"
# Initialize the tokenizer and model
tokenizer = AutoTokenizer.from_pretrained(model_id)
model = OVModelForCausalLM.from_pretrained(model_id)
pipeline = transformers.pipeline("text-generation", model=model_id, model_kwargs={"torch_dtype": torch.bfloat16}, device_map="auto")
pipeline("i am in paris, plan me a 2 week trip")