Downloads · 30 days
81
25% of all-time downloads
myselfsaurabh/gpt-oss-20b-offload
gpt-oss-20b-offload is a text generation model from myselfsaurabh. Use it when you need the model to write or continue text. The card lists the license as mit.
This is a CPU+GPU offload‑ready copy of OpenAI’s GPT‑OSS‑20B model, an open‑source, Mixture‑of‑Experts large language model released by OpenAI in 2025. The model here retains OpenAI’s original MXFP4 quantization and i…
Downloads · 30 days
81
25% of all-time downloads
All-time downloads
328
Public
Parameters
20.9B
41.9 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors41.8 GB · 100%
From the Hugging Face model README
This is a CPU+GPU offload‑ready copy of OpenAI’s GPT‑OSS‑20B model, an open‑source, Mixture‑of‑Experts large language model released by OpenAI in 2025.
The model here retains OpenAI’s original MXFP4 quantization and is configured for memory‑efficient loading in Colab or similar GPU environments.
openai/gpt-oss-20b (no additional fine‑tuning performed)Like all large language models, GPT‑OSS‑20B can:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "your-username/gpt-oss-20b-offload"
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Load with CPU+GPU offload
max_mem = {0: "20GiB", "cpu": "64GiB"}
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto",
max_memory=max_mem
)
inputs = tokenizer("Explain GPT‑OSS‑20B in one paragraph.", return_tensors="pt").to(0)
outputs = model.generate(**inputs, max_new_tokens=80)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))