llmrun
SalesforceCodeGenForCausalLM

Codegen 350M Mono — Hardware Requirements & GPU Compatibility

ChatCode

Codegen 350M Mono is a 350M-parameter open language model from Salesforce. It supports a context window of up to 2,048 tokens. At FP16 it needs about 0.77 GB of VRAM — see which GPUs and Macs can run it below.

350M params · dense2K contextBSD 3-Clause35.4K downloads101 likes
S

Runs great on a 24 GB GPU

Runs from8 GB FP16 · 2KBest on24 GB FP16 · ~851 tok/s · 2KMacs from8 GB FP16 · ~93 tok/s

BSD 3-Clause

Reference GPU · RTX 4090 24 GB

Estimates, ±20% · how we estimate

Run Codegen 350M Mono

One recommended way. Every other method, OS and quant is in the step-by-step guide.Each way opens a step-by-step guide for your OS and quant.

Recommended

vLLM
one command · needs vLLM installed
$vllm serve Salesforce/codegen-350M-mono --max-model-len 2048

vLLM repo with its own quantisation

Download: Weights on Hugging Face

install, OS, other quants

Ways to runOther ways

each opens step-by-step

Run in cloud

Runs on RTX 3080 Ti (12 GB) (11 GB headroom) · FP16

Generation speed
~770 tok/s
generation speed
Cost per 1M output tokens
$0.044
per 1M output tokens

How Much VRAM Does Codegen 350M Mono Need?

Select a quantization level; the listed hardware adheres to it.

QuantizationVRAM+32KOn RTX 4090 (reference)
0.8 GB—16-bit · full — Full half-precision — baseline for inferenceFits: 2K context · ~851 tok/s
est.calculated, no published file yet

Selected FP16

Full half-precision

0.8GBat 2K context

Weights
0.3 GB
KV cache
0.2 GB
Overhead
0.3 GB

Fits RTX 4090 (reference) · 23.2 GB free · ~851 tok/s

≥50 tok/s needs ≥59 GB/s · RTX 5090 ~1513, RTX 3090 Ti ~851

Which Hardware Can Run Codegen 350M Mono?

FP16 · 0.8 GB

Codegen 350M Mono (FP16) requires 0.8 GB of VRAM to load the model weights. For comfortable inference with headroom for KV cache and system overhead, 2+ GB is recommended. 52 GPUs can run it, including NVIDIA GeForce RTX 5090, NVIDIA GeForce RTX 3090 Ti. 163 devices with unified memory can run Codegen 350M Mono, including Mac Studio (M3 Ultra, 256GB), Mac Studio (M3 Ultra, 512GB).

By VRAM tier · typical GPUs and Macs at FP16
8 GB · RTX 4060FP16 · 0.8 GB · ~230 tok/s · 2K8 GB tier →
12 GB · RTX 3060 12GBFP16 · 0.8 GB · ~304 tok/s · 2K12 GB tier →
16 GB · RTX 5060 Ti 16GBFP16 · 0.8 GB · ~378 tok/s · 2K16 GB tier →
24 GB · RTX 4090referenceFP16 · 0.8 GB · ~851 tok/s · 2K24 GB tier →
Mac 32 GB · Mac Mini M4FP16 · 0.8 GB · ~109 tok/s · 2KMacs →
Mac 64 GB · Mac Studio M4 MaxFP16 · 0.8 GB · ~496 tok/s · 2KMacs →

Alternatives to Codegen 350M Mono

Similar models

5
ModelScoreVRAMtok/sWhy it is similar
Granite 4.0 350MIBM—1 GB~1150same size
SmolLM 360MHugging Face—0.6 GB~1092same size
LFM2.5 350MLiquid AI—0.8 GB~1130same size
ERNIE 4.5 0.3B PTBaidu—0.7 GB~1213same size
LFM2 350MLiquid AI—0.8 GB~1130same size

Specifications

Publisher
Salesforce
Parameters
350M
Architecture
CodeGenForCausalLM
Context Length
2,048 tokens
Vocabulary Size
51,200
Release Date
2022-04-11
License
BSD 3-Clause

Frequently Asked Questions

How much VRAM does Codegen 350M Mono need?

Codegen 350M Mono requires 0.8 GB of VRAM at FP16.

VRAM = Weights + KV Cache + Overhead

Weights = 350M × 16 bits ÷ 8 = 0.7 GB

KV Cache + Overhead ≈ 0.1 GB (at 2K context + ~0.3 GB framework)

Fit ratings and hardware model lists check this model with room for a 16K-token context, which needs a little more memory.

VRAM usage by quantization

0.8 GB

Learn more about VRAM estimation →

Can I run Codegen 350M Mono on a Mac?

Yes — MacBook Air 13" M3 (8 GB) and 145 other Macs can run Codegen 350M Mono. Apple Silicon uses unified memory, so the model shares RAM with the system. At FP16 you need at least 0.8 GB of usable unified memory (RAM minus macOS overhead).

Can I run Codegen 350M Mono locally?

Yes — Codegen 350M Mono can run locally on consumer hardware. Popular tools include Ollama, LM Studio, and llama.cpp.

How fast is Codegen 350M Mono?

At FP16, Codegen 350M Mono can reach ~6234 tok/s on AMD Instinct MI350X. On NVIDIA GeForce RTX 4090: ~851 tok/s. Speed depends mainly on GPU memory bandwidth. Real-world results typically within ±20%.

tok/s = (bandwidth GB/s ÷ model GB) × efficiency

Example: NVIDIA B200 → 8000 ÷ 0.77 × 0.65 = ~6753 tok/s

Estimated speed at FP16 (0.8 GB)

~6753 tok/s
~851 tok/s
~6753 tok/s
~6234 tok/s

Real-world results typically within ±20%. Speed depends on batch size, quantization kernel, and software stack.

Learn more about tok/s estimation →

What's the download size of Codegen 350M Mono?

At FP16, the download is about 0.70 GB.

Which GPUs can run Codegen 350M Mono?

52 consumer GPUs can run Codegen 350M Mono at FP16. Top options include AMD Radeon RX 6700 XT, AMD Radeon RX 6800, AMD Radeon RX 6800 XT. 52 GPUs have plenty of headroom for comfortable inference.

Which devices can run Codegen 350M Mono?

163 devices with unified memory can run Codegen 350M Mono at FP16 (0.8 GB), including AMD Ryzen AI 9 HX 370 (Strix Point) Laptop, ASUS Ascent GX10, Beelink GTR9 Pro (Ryzen AI Max+ 395, 128 GB), Framework Desktop (Ryzen AI Max+ 395, 128 GB). Apple Silicon Macs use unified memory shared between CPU and GPU, making them well-suited for local LLM inference.