ONNX Model Zoo

amd/Llama-2-7b-chat-hf-awq-g128-int4-asym-fp16-onnx-dml

By amd · ↓ 0 · ♥ 0 · Updated 2024-12-03

What's in this repo

This page lists the files in amd/Llama-2-7b-chat-hf-awq-g128-int4-asym-fp16-onnx-dml, including model.onnx.

  • 1 ONNX models (.onnx files)
  • 9 files, including 4 .json, 1 .md, 1 .onnx, 1 .data, 1 .model
  • Last updated 2024-12-03

ONNX files

File Size Download
model.onnx — Download

How to use

These ONNX files can be loaded with ONNX Runtime. To inspect a model graph, upload the file to the Netron viewer. Download links point to the original files on Hugging Face.

README

meta-llama/Llama-2-7b-chat-hf

  • Introduction

    • Quantization Tool: Quark 0.6.0
    • OGA Model Builder: v0.5.1
  • Quantization Strategy

    • AWQ / Group 128 / Asymmetric / UINT4 Weights / FP16 activations
    • Excluded Layers: None
    python3 quantize_quark.py \
          --model_dir "$model" \
          --output_dir "$output_dir" \
          --quant_scheme w_uint4_per_group_asym \
          --num_calib_data 128 \
          --quant_algo awq \
          --dataset pileval_for_awq_benchmark \
          --seq_len 512 \
          --model_export quark_safetensors \
          --data_type float16 \
          --exclude_layers [] \
          --custom_mode awq
    
  • OGA Model Builder

    python builder.py \
      -i <quantized safetensor model dir> \
      -o <oga model output dir> \
      -p int4 \
      -e dml
    

Model info

onnx amd meta facebook llama llama-2 text-generation conversational en base_model:meta-llama/Llama-2-7b-chat-hf base_model:quantized:meta-llama/Llama-2-7b-chat-hf license:llama2
↓ 0 ♥ 0

Created: 2024-11-30

Updated: 2024-12-03

View on Hugging Face

Files (9)

.gitattributes
README.md
genai_config.json
model.onnx ONNX
model.onnx.data
special_tokens_map.json
tokenizer.json
tokenizer.model
tokenizer_config.json

Related models