Llama-3.1-8B-Instruct OpenVINO (INT8)
OpenVINO IR conversion of meta-llama/Meta-Llama-3.1-8B-Instruct with weight-only INT8 quantization, produced on CPU-only Kaggle with optimum-cli (fully offline, token-free).
- Base model:
meta-llama/Meta-Llama-3.1-8B-Instruct(LlamaForCausalLM, 8B params, Llama 3.1 Community License) - Task:
text-generation(instruction-tuned, chat template included) - Precision: weights INT8 (NNCF), activations FP16/FP32 as traced
- Converted with:
optimum-intel 2.2.0,openvino 2026.4.1,transformers 5.16.1 - 128k context
- 3 IR parts: openvino_model, openvino_tokenizer, openvino_detokenizer
Usage
optimum-intel
from optimum.intel import OVModelForCausalLM
from transformers import AutoTokenizer
model = OVModelForCausalLM.from_pretrained("Nekodeus/llama-3.1-8b-instruct-openvino")
tokenizer = AutoTokenizer.from_pretrained("Nekodeus/llama-3.1-8b-instruct-openvino")
messages = [{"role": "user", "content": "Explain photosynthesis in two sentences."}]
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(prompt, return_tensors="pt")
print(tokenizer.decode(model.generate(**inputs, max_new_tokens=64)[0]))
OpenVINO GenAI
ov::genai::LLMPipeline pipe("path/to/llama-3.1-8b-instruct-openvino", "CPU");
Reproduce
optimum-cli export openvino \
--model meta-llama/Meta-Llama-3.1-8B-Instruct \
--task text-generation \
--weight-format int8 \
llama-3.1-8b-instruct-openvino
Note: built with
transformers==5.16.1pinned (Kaggle image ships 5.20.2, which removedVisionRotaryEmbeddingthat optimum-intel 2.2.0 imports) plus a bypass of optimum's legacyMAX_TRANSFORMERS_VERSIONgate. Weights were pulled from the public ModelScope mirror (LLM-Research/Meta-Llama-3.1-8B-Instruct).
- Downloads last month
- 22