File size: 2,356 Bytes
d4fd12b
 
 
 
 
 
 
 
 
d24dfd0
 
 
 
 
 
 
388c933
451152f
 
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
---
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) on CUDA GPU devices, 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 build [ONNX Runtime GenAI](https://onnxruntime.ai/docs/genai/) from source to get the latest changes and run the model. See instructions [here](https://onnxruntime.ai/docs/genai/howto/build-from-source.html) for building from source. You can then run the inference example [here](https://github.com/microsoft/onnxruntime-genai/blob/main/examples/python/model-chat.py).

## ONNX Models 
The optimized configuration we have added is ONNX model for CUDA GPU using int4 kquant quantization with 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 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.