Skip to main content

Supported Formats

ForgeAI works with two primary model formats (GGUF and SafeTensors) and four dataset formats (JSON, JSONL, CSV, Parquet).

Model Formats

GGUF

The GGUF (GPT-Generated Unified Format) is the standard format for llama.cpp and its ecosystem. Characteristics:
  • Single file containing weights, metadata, and tokenizer
  • Supports quantized dtypes (Q2_K through Q8_0, plus F16/F32)
  • Used by llama.cpp, Ollama, LM Studio, KoboldCpp
ForgeAI support:

SafeTensors

SafeTensors is HuggingFace’s format for storing model weights safely and efficiently. Characteristics:
  • Typically paired with config.json and tokenizer files in a directory
  • Large models are sharded across multiple .safetensors files
  • Supports F16, BF16, F32 dtypes
  • Used by HuggingFace Transformers, vLLM, ExLlamaV2, MLX
ForgeAI support:

Folder Structure

SafeTensors models from HuggingFace typically have this structure:

Model Format Comparison

Dataset Formats

JSON

Array of objects in a single file.

JSONL

One JSON object per line (JSON Lines format).

CSV

Comma-separated values with a header row.

Parquet

Apache Parquet columnar binary format. Most HuggingFace datasets use this format. ForgeAI reads Parquet natively in Rust using Apache Arrow — no Python required.

Dataset Format Support

Dataset Template Detection

ForgeAI auto-detects these common dataset templates: