File size: 2,296 Bytes
d4fd12b d24dfd0 541c1bc d24dfd0 388c933 451152f 541c1bc d24dfd0 541c1bc d24dfd0 541c1bc d24dfd0 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
---
license: apache-2.0
language:
- en
base_model:
- openai/gpt-oss-20b
tags:
- ONNX
- ONNXRuntime
---
## gpt-oss-20b ONNX Models
This repository hosts the optimized versions of [gpt-oss-20b](https://huggingface.co/openai/gpt-oss-20b) to accelerate inference with ONNX Runtime. Model optimizations refer to techniques and methods used to improve the run time performance, efficiency, and resource utilization of machine learning models.
Optimized models are published here in [ONNX](https://onnx.ai) format to run with [ONNX Runtime](https://onnxruntime.ai) with the precision best suited to this target.
To easily get started with the model, you can use [Foundry Local](https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-local/get-started). See instructions [here](https://learn.microsoft.com/en-us/azure/ai-foundry/foundry-local/get-started#run-the-latest-openai-open-source-model).
You can also install [ONNX Runtime GenAI](https://onnxruntime.ai/docs/genai/) to run the model. You can then run the inference example [here](https://github.com/microsoft/onnxruntime-genai/blob/main/examples/python/model-chat.py).
## ONNX Models
Here are some of the optimized configurations we have added:
1. ONNX model for CPU and mobile using int4 quantization via RTN and block size 32.
2. ONNX model for CUDA GPU using int4 quantization via k-quant mixed precision and block size 32.
## Model Description
- **Developed by:** Microsoft
- **Model type:** ONNX
- **License:** Apache-2.0
- **License Description:** Use of this model is subject to the terms of the Apache License, Version 2.0, available at https://www.apache.org/licenses/LICENSE-2.0.
- **Model Description:** This is a conversion of the gpt-oss-20b model for local inference on CPU and CUDA GPUs.
- **Disclaimer:** Model is only an optimization of the base model, any risk associated with the model is the responsibility of the user of the model. Please verify and test for your scenarios. There may be a slight difference in output from the base model with the optimizations applied. Note that optimizations applied are distinct from fine tuning and thus do not alter the intended uses or capabilities of the model.
## Base Model Information
See HF link [gpt-oss-20b](https://huggingface.co/openai/gpt-oss-20b) for details. |