Update README.md
Browse files
README.md
CHANGED
|
@@ -3,180 +3,67 @@ license: apache-2.0
|
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
library_name: transformers
|
| 5 |
tags:
|
| 6 |
-
-
|
|
|
|
|
|
|
| 7 |
---
|
| 8 |
|
| 9 |
-
|
| 10 |
-
<img alt="gpt-oss-120b" src="https://raw.githubusercontent.com/openai/gpt-oss/main/docs/gpt-oss-120b.svg">
|
| 11 |
-
</p>
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
<a href="https://cookbook.openai.com/topic/gpt-oss"><strong>Guides</strong></a> ·
|
| 16 |
-
<a href="https://arxiv.org/abs/2508.10925"><strong>Model card</strong></a> ·
|
| 17 |
-
<a href="https://openai.com/index/introducing-gpt-oss/"><strong>OpenAI blog</strong></a>
|
| 18 |
-
</p>
|
| 19 |
|
| 20 |
-
|
| 21 |
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
| 23 |
|
| 24 |
-
|
| 25 |
-
- `gpt-oss-120b` — for production, general purpose, high reasoning use cases that fit into a single 80GB GPU (like NVIDIA H100 or AMD MI300X) (117B parameters with 5.1B active parameters)
|
| 26 |
-
- `gpt-oss-20b` — for lower latency, and local or specialized use cases (21B parameters with 3.6B active parameters)
|
| 27 |
|
| 28 |
-
|
| 29 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
-
|
| 32 |
-
> This model card is dedicated to the larger `gpt-oss-120b` model. Check out [`gpt-oss-20b`](https://huggingface.co/openai/gpt-oss-20b) for the smaller model.
|
| 33 |
|
| 34 |
-
|
| 35 |
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
* **Fine-tunable:** Fully customize models to your specific use case through parameter fine-tuning.
|
| 40 |
-
* **Agentic capabilities:** Use the models’ native capabilities for function calling, [web browsing](https://github.com/openai/gpt-oss/tree/main?tab=readme-ov-file#browser), [Python code execution](https://github.com/openai/gpt-oss/tree/main?tab=readme-ov-file#python), and Structured Outputs.
|
| 41 |
-
* **MXFP4 quantization:** The models were post-trained with MXFP4 quantization of the MoE weights, making `gpt-oss-120b` run on a single 80GB GPU (like NVIDIA H100 or AMD MI300X) and the `gpt-oss-20b` model run within 16GB of memory. All evals were performed with the same MXFP4 quantization.
|
| 42 |
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
# Inference examples
|
| 46 |
-
|
| 47 |
-
## Transformers
|
| 48 |
-
|
| 49 |
-
You can use `gpt-oss-120b` and `gpt-oss-20b` with Transformers. If you use the Transformers chat template, it will automatically apply the [harmony response format](https://github.com/openai/harmony). If you use `model.generate` directly, you need to apply the harmony format manually using the chat template or use our [openai-harmony](https://github.com/openai/harmony) package.
|
| 50 |
-
|
| 51 |
-
To get started, install the necessary dependencies to setup your environment:
|
| 52 |
-
|
| 53 |
-
```
|
| 54 |
-
pip install -U transformers kernels torch
|
| 55 |
-
```
|
| 56 |
-
|
| 57 |
-
Once, setup you can proceed to run the model by running the snippet below:
|
| 58 |
-
|
| 59 |
-
```py
|
| 60 |
-
from transformers import pipeline
|
| 61 |
-
import torch
|
| 62 |
-
|
| 63 |
-
model_id = "openai/gpt-oss-120b"
|
| 64 |
-
|
| 65 |
-
pipe = pipeline(
|
| 66 |
-
"text-generation",
|
| 67 |
-
model=model_id,
|
| 68 |
-
torch_dtype="auto",
|
| 69 |
-
device_map="auto",
|
| 70 |
-
)
|
| 71 |
-
|
| 72 |
-
messages = [
|
| 73 |
-
{"role": "user", "content": "Explain quantum mechanics clearly and concisely."},
|
| 74 |
-
]
|
| 75 |
-
|
| 76 |
-
outputs = pipe(
|
| 77 |
-
messages,
|
| 78 |
-
max_new_tokens=256,
|
| 79 |
-
)
|
| 80 |
-
print(outputs[0]["generated_text"][-1])
|
| 81 |
-
```
|
| 82 |
-
|
| 83 |
-
Alternatively, you can run the model via [`Transformers Serve`](https://huggingface.co/docs/transformers/main/serving) to spin up a OpenAI-compatible webserver:
|
| 84 |
-
|
| 85 |
-
```
|
| 86 |
-
transformers serve
|
| 87 |
-
transformers chat localhost:8000 --model-name-or-path openai/gpt-oss-120b
|
| 88 |
-
```
|
| 89 |
-
|
| 90 |
-
[Learn more about how to use gpt-oss with Transformers.](https://cookbook.openai.com/articles/gpt-oss/run-transformers)
|
| 91 |
-
|
| 92 |
-
## vLLM
|
| 93 |
-
|
| 94 |
-
vLLM recommends using [uv](https://docs.astral.sh/uv/) for Python dependency management. You can use vLLM to spin up an OpenAI-compatible webserver. The following command will automatically download the model and start the server.
|
| 95 |
-
|
| 96 |
-
```bash
|
| 97 |
-
uv pip install --pre vllm==0.10.1+gptoss \
|
| 98 |
-
--extra-index-url https://wheels.vllm.ai/gpt-oss/ \
|
| 99 |
-
--extra-index-url https://download.pytorch.org/whl/nightly/cu128 \
|
| 100 |
-
--index-strategy unsafe-best-match
|
| 101 |
-
|
| 102 |
-
vllm serve openai/gpt-oss-120b
|
| 103 |
-
```
|
| 104 |
-
|
| 105 |
-
[Learn more about how to use gpt-oss with vLLM.](https://cookbook.openai.com/articles/gpt-oss/run-vllm)
|
| 106 |
-
|
| 107 |
-
## PyTorch / Triton
|
| 108 |
-
|
| 109 |
-
To learn about how to use this model with PyTorch and Triton, check out our [reference implementations in the gpt-oss repository](https://github.com/openai/gpt-oss?tab=readme-ov-file#reference-pytorch-implementation).
|
| 110 |
-
|
| 111 |
-
## Ollama
|
| 112 |
-
|
| 113 |
-
If you are trying to run gpt-oss on consumer hardware, you can use Ollama by running the following commands after [installing Ollama](https://ollama.com/download).
|
| 114 |
-
|
| 115 |
-
```bash
|
| 116 |
-
# gpt-oss-120b
|
| 117 |
-
ollama pull gpt-oss:120b
|
| 118 |
-
ollama run gpt-oss:120b
|
| 119 |
-
```
|
| 120 |
-
|
| 121 |
-
[Learn more about how to use gpt-oss with Ollama.](https://cookbook.openai.com/articles/gpt-oss/run-locally-ollama)
|
| 122 |
-
|
| 123 |
-
#### LM Studio
|
| 124 |
-
|
| 125 |
-
If you are using [LM Studio](https://lmstudio.ai/) you can use the following commands to download.
|
| 126 |
-
|
| 127 |
-
```bash
|
| 128 |
-
# gpt-oss-120b
|
| 129 |
-
lms get openai/gpt-oss-120b
|
| 130 |
-
```
|
| 131 |
-
|
| 132 |
-
Check out our [awesome list](https://github.com/openai/gpt-oss/blob/main/awesome-gpt-oss.md) for a broader collection of gpt-oss resources and inference partners.
|
| 133 |
-
|
| 134 |
-
---
|
| 135 |
-
|
| 136 |
-
# Download the model
|
| 137 |
-
|
| 138 |
-
You can download the model weights from the [Hugging Face Hub](https://huggingface.co/collections/openai/gpt-oss-68911959590a1634ba11c7a4) directly from Hugging Face CLI:
|
| 139 |
-
|
| 140 |
-
```shell
|
| 141 |
-
# gpt-oss-120b
|
| 142 |
-
huggingface-cli download openai/gpt-oss-120b --include "original/*" --local-dir gpt-oss-120b/
|
| 143 |
-
pip install gpt-oss
|
| 144 |
-
python -m gpt_oss.chat model/
|
| 145 |
-
```
|
| 146 |
-
|
| 147 |
-
# Reasoning levels
|
| 148 |
|
| 149 |
-
|
| 150 |
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 154 |
|
| 155 |
-
|
| 156 |
|
| 157 |
-
|
|
|
|
|
|
|
| 158 |
|
| 159 |
-
|
| 160 |
-
* Web browsing (using built-in browsing tools)
|
| 161 |
-
* Function calling with defined schemas
|
| 162 |
-
* Agentic operations like browser tasks
|
| 163 |
|
| 164 |
-
|
|
|
|
|
|
|
| 165 |
|
| 166 |
-
|
| 167 |
|
| 168 |
-
|
|
|
|
| 169 |
|
| 170 |
-
|
| 171 |
|
| 172 |
-
|
| 173 |
-
|
| 174 |
-
title={gpt-oss-120b & gpt-oss-20b Model Card},
|
| 175 |
-
author={OpenAI},
|
| 176 |
-
year={2025},
|
| 177 |
-
eprint={2508.10925},
|
| 178 |
-
archivePrefix={arXiv},
|
| 179 |
-
primaryClass={cs.CL},
|
| 180 |
-
url={https://arxiv.org/abs/2508.10925},
|
| 181 |
-
}
|
| 182 |
-
```
|
|
|
|
| 3 |
pipeline_tag: text-generation
|
| 4 |
library_name: transformers
|
| 5 |
tags:
|
| 6 |
+
- cultural-heritage
|
| 7 |
+
- government
|
| 8 |
+
- fine-tuning
|
| 9 |
---
|
| 10 |
|
| 11 |
+
# 국가유산청 특화 파인튜닝 모델 카드
|
|
|
|
|
|
|
| 12 |
|
| 13 |
+
본 문서는 **국가유산청)** 업무를 지원하기 위해 파인튜닝된 대규모 언어 모델이다.
|
| 14 |
+
본 모델은 공공 행정, 문화유산 관리, 학술 연구, 정책 지원을 목적으로 설계되었으며, 내부 업무 효율성과 전문성 강화를 목표로 한다.
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
|
| 16 |
+
## 모델 개요
|
| 17 |
|
| 18 |
+
- **기반 모델:** gpt-oss-120b (OpenAI open-weight model)
|
| 19 |
+
- **모델 유형:** 텍스트 생성 / 추론 특화 대규모 언어 모델
|
| 20 |
+
- **파라미터 규모:** 117B (MoE 구조, 활성 파라미터 약 5.1B)
|
| 21 |
+
- **라이선스:** Apache 2.0 (공공기관 활용 및 내부 커스터마이징 허용)
|
| 22 |
|
| 23 |
+
## 파인튜닝 목적
|
|
|
|
|
|
|
| 24 |
|
| 25 |
+
본 모델은 다음과 같은 국가유산청 고유 업무를 지원하도록 파인튜닝되었다.
|
| 26 |
|
| 27 |
+
- 국가유산(유·무형, 자연유산 포함) 관련 문서 요약 및 분석
|
| 28 |
+
- 문화유산 정책·법령·행정 문서 초안 작성 지원
|
| 29 |
+
- 조사·발굴·보존·복원 관련 기술 문서 이해 및 질의응답
|
| 30 |
+
- 학술 보고서, 연구 자료, 내부 보고용 텍스트 생성
|
| 31 |
+
- 대국민 설명 자료 및 교육용 콘텐츠 초안 생성(내부 검토용)
|
| 32 |
|
| 33 |
+
※ 본 모델은 **최종 대외 공개 콘텐츠 자동 생성**을 목적으로 하지 않으며, 반드시 담당자의 검토를 전제로 사용한다.
|
|
|
|
| 34 |
|
| 35 |
+
## 데이터 및 학습 범위
|
| 36 |
|
| 37 |
+
- 공개 가능한 문화유산 관련 법령, 제도, 정책 문서
|
| 38 |
+
- 학술 논문, 보고서, 백서 등 공공 목적 자료
|
| 39 |
+
- 한국어 중심, 필요 시 다국어 참고 문헌 포함
|
|
|
|
|
|
|
|
|
|
| 40 |
|
| 41 |
+
개인정보, 비공개 정보, 민감 데이터는 학습 데이터에서 제외되었다.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 42 |
|
| 43 |
+
## 추론 및 사용 특성
|
| 44 |
|
| 45 |
+
- **Reasoning Level:** 중~고 (정책·학술 분석에 적합)
|
| 46 |
+
- **응답 성향:** 사실 기반, 설명 중심, 행정·학술 문체
|
| 47 |
+
- **체인 오브 소트:** 내부 디버깅 및 검증 목적 사용 (대외 비공개)
|
| 48 |
|
| 49 |
+
## 권장 사용 환경
|
| 50 |
|
| 51 |
+
- 단일 80GB GPU (NVIDIA H100 또는 동급)
|
| 52 |
+
- Transformers 또는 vLLM 기반 추론 환경
|
| 53 |
+
- 내부 전산망 또는 보안이 확보된 서버 환경
|
| 54 |
|
| 55 |
+
## 제한 사항 및 주의점
|
|
|
|
|
|
|
|
|
|
| 56 |
|
| 57 |
+
- 법적 해석, 정책 결정, 행정 판단의 최종 근거로 사용 불가
|
| 58 |
+
- 역사·고고학적 해석은 학계의 다양한 견해 중 하나로 제시될 수 있음
|
| 59 |
+
- 최신 법령 개정 사항은 별도 검증 필요
|
| 60 |
|
| 61 |
+
## 활용 예시
|
| 62 |
|
| 63 |
+
- “경복궁 근정전에 대한 학술적 보존 연구 정리”
|
| 64 |
+
- “조선시대 목조건축 보존 기법 관련 연구 정리”
|
| 65 |
|
| 66 |
+
## 책임 및 윤리
|
| 67 |
|
| 68 |
+
본 모델은 **국가유산의 공공성, 학술적 엄정성, 행정적 중립성**을 최우선 가치로 설계되었다.
|
| 69 |
+
모델 출력물에 대한 최종 책임은 이를 활용하는 기관 및 담당자에게 있다.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|