Skip to content

u/No-While1332

In this archive from Dec 2025 to Dec 2026

12
posts
86
comments
12
media
215
score
2 saved before deletion

Top posts

Top comments

GGUF is a binary format designed for efficient local inference of large language models (LLMs) on consumer hardware like CPUs and low-end GPUs. It is the primary format used by llama.cpp and compatible tools like Ollama and vLLM. Its key strengths include flexible quantization (e.g., Q4_K_M, Q8_0), fast loading via mmap, low memory usage, and portability across systems. It is ideal for running models like Llama, Mistral, or Phi locally without requiring a high-end GPU. However, it requires conversion from other formats (like Hugging Face models) and is less suited for training or cross-framework deployment.

Safetensors is a secure, fast, and efficient format for sharing and loading model weights, now the default on Hugging Face. It stores only tensors and metadata in a JSON header, preventing arbitrary code execution (unlike pickle), enabling lazy loading, zero-copy memory mapping, and fast startup times. It is widely used for training, fine-tuning, and distributing models across the open-source community. While it supports quantization, its quantization flexibility is less advanced than GGUF’s. It is not optimized for direct inference on CPUs without additional runtime support.

ONNX (Open Neural Network Exchange) is a cross-framework, vendor-neutral format for model interoperability and production deployment. It stores both model weights and the computation graph, enabling deployment across different frameworks (PyTorch, TensorFlow, MXNet) and hardware (CPUs, GPUs, edge devices). It is ideal for high-performance, scalable inference in production environments, especially with ONNX Runtime. It supports advanced optimizations and is used in mobile (via ONNX Runtime Mobile), web, and cloud deployments. However, it lacks native support for some custom layers and has less flexible quantization compared to GGUF. It is not optimized for lightweight local LLM inference on CPUs.

Summary:

Use GGUF for efficient, local LLM inference on consumer hardware (e.g., running Llama on a laptop).

Use Safetensors for secure, fast model sharing and loading on Hugging Face or within PyTorch workflows.

Use ONNX for cross-platform, high-performance production deployment across diverse hardware and frameworks

7 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.