Model reference · open weights

Phi-Hermes

LLMs teknium Text gen 1 build Its own licence terms 17 dl/mo

Phi-Hermes is an open-weight language model from teknium. Phi-Hermes-1.3B (BF16) weighs 2.8 GB; the smallest configuration that runs it is RTX 3060 12 GB.

  • Phi-Hermes is a 1.4B parameter text-generation model created by teknium and published as teknium/Phi-Hermes-1.3B.
  • It is a fine-tuned version of Phi-1.5 trained on the OpenHermes Dataset, which consists of over 240,000 synthetic data points.
  • The model supports a context length of 2048 tokens, operates in English, and is released under an other licence.

Summary of the teknium/Phi-Hermes-1.3B model card, 2026-10-01

What it is

Released byteknium
Released2023-09-13
Parameters1.4B
VRAM2.8 GB for the weights

What it runs on

Memory and cards for Phi-Hermes-1.3B (BF16)

2.8 GBweights, file size
197 MBcache per 1K tokens
582 MBruntime overhead, at least
2,048 tokenscontext max
CardRequests at onceContext maxMemory
2K each
RTX 3060 12 GB20all 2K11.6 GB
RTX 4060 Ti 16 GB29all 2K15.4 GB
RTX 3090 24 GB49all 2K23.4 GB
RTX 4090 24 GB49all 2K23.4 GB
RTX 5090 32 GB68all 2K31.0 GB
L40S 48 GB100all 2K44.0 GB
A100 80 GB185all 2K78.2 GB
H100 80 GB178all 2K78.1 GB
RTX PRO 6000 Blackwell 96 GB217all 2K93.8 GB
DGX Spark (GB10) 128 GB unified250all 2K107 GB
H200 141 GB326all 2K138 GB
B200 180 GB420all 2K176 GB
Memory needed at each load
Requests at once2K tokens each
13.8 GB
55.4 GB
86.6 GB
169.9 GB
3216.3 GB
6429.2 GB

One card, with vLLM's small-card settings.

From the model card

What teknium says about Phi-Hermes

Read the model card

Phi-1.5 fine tuned with Hermes Dataset

Model Details

Model Sources

This model was trained on the OpenHermes Dataset, made by me, which is over 240,000 mostly GPT-4 generated synthetic datapoints

Uses

Let me know!

How to Get Started with the Model

Phi does not support device_map "auto", and does not seem to want to inference in fp16, so use bf16.

Here is working code to inference, though it can be improved:

import torch
from transformers import AutoModelForCausalLM, AutoTokenizer

model = AutoModelForCausalLM.from_pretrained("teknium/Puffin-Phi-v2", trust_remote_code=True, torch_dtype=torch.bfloat16).to("cuda")
tokenizer = AutoTokenizer.from_pretrained("teknium/Puffin-Phi-v2", trust_remote_code=True, torch_dtype=torch.bfloat16)
inputs = tokenizer(f"### Instruction:\nWrite a negative review for the website, Twitter.\n### Response:\n", return_tensors="pt", return_attention_mask=False)
outputs = model.generate(**inputs, max_length=128, do_sample=True, temperature=0.2, top_p=0.9, use_cache=True, repetition_penalty=1.2, eos_token_id=tokenizer.eos_token_id)
text = tokenizer.batch_decode(outputs)[0]
print(text)

The prompt format is Alpaca, then is prompted like so:

### Instruction:
### Response:

Training Details

Training Procedure

Trained with Axolotl. View the wandb runs for all my puffin runs (this is puffin-phi-4 on wandb): https://wandb.ai/teknium1/hermes-phi/runs/hermes-phi-1

Evaluation

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms