Views
No views yet

gpt-oss-20b for Hermes-Agent,
a local agent framework that needs models which call tools reliably, follow
multi-turn instructions, and don't argue with system prompts.1from unsloth import FastLanguageModel
2
3model, tok = FastLanguageModel.from_pretrained(
4 "fesalfayed/gpt-oss-20b-hermes_agent-tool-finetune_4bit",
5 max_seq_length=8192,
6 load_in_4bit=True,
7)
8FastLanguageModel.for_inference(model)1from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
2import torch
3
4tok = AutoTokenizer.from_pretrained("fesalfayed/gpt-oss-20b-hermes_agent-tool-finetune_4bit")
5model = AutoModelForCausalLM.from_pretrained(
6 "fesalfayed/gpt-oss-20b-hermes_agent-tool-finetune_4bit",
7 quantization_config=BitsAndBytesConfig(load_in_4bit=True,
8 bnb_4bit_compute_dtype=torch.bfloat16,
9 bnb_4bit_quant_type="nf4"),
10 device_map="auto",
11)~/.hermes/config.yaml:1profiles:
2 gpt-oss-20b-tools:
3 provider: openai
4 base_url: http://127.0.0.1:1234/v1 # LM Studio / vLLM / mlx_lm.server
5 model: fesalfayed/gpt-oss-20b-hermes_agent-tool-finetune_4bit
6 temperature: 0.7
7 top_p: 0.95
8 min_p: 0.1 # important for MoE stability
9 max_tokens: 8192
10 tool_choice: autohermes profile use gpt-oss-20b-tools and the agent loop will route
tool calls through this model.| Param | Value | Why |
|---|---|---|
| temperature | 0.7 | balanced; drop to 0.2 for strict tool calls |
| top_p | 0.95 | standard nucleus |
| min_p | 0.1 | required for MoE — prevents dead-expert tokens |
| repetition_penalty | 1.0 | the model handles repetition itself |
Reasoning: low|medium|high.
high is roughly 3-4x more output tokens but noticeably better on multi-step
tool plans.openai/gpt-oss-20b_16bit repo holds the merged BF16 weights. The _4bit, _mlx, and
_gguf repos are quantizations of that checkpoint.gpt-oss-20b already provides.1@misc{fesalfayed_gptoss20b_hermesagent_2025,
2 author = {Fayed, Fesal},
3 title = {gpt-oss-20b Hermes-Agent tool finetune (4bit)},
4 year = {2025},
5 url = {https://huggingface.co/fesalfayed/gpt-oss-20b-hermes_agent-tool-finetune_4bit},
6}