You need to agree to share your Hugging Face information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

GearCut Editor (gc_editor)

gc_editor is a compact instruction-to-operations model that powers GearCut, an ultra-lightweight, FFmpeg-based video editor. It translates a plain-English editing instruction into a list of structured editing operations (JSON) that GearCut's project -> ffmpeg compiler then executes. It is designed to run locally, on CPU, so the editor needs no cloud service and no user video ever leaves the machine.

Developed by AMEFORGE. Built on the in-house SparseMind architecture (sparse attention + sparse FFN, dynamic neuron typing, and episodic memory).

Try it live

Try the model right now, no install needed, in the GearCut demo Space — type an editing instruction in plain English and see the operations it produces.

The Space sleeps when nobody uses it and wakes up when you open it, so the first load takes a moment.

What it does

  • Input: the current timeline state + a natural-language instruction.
  • Output: a JSON array of editing operations.
INPUT
clips: c1=intro.mp4(0.0-8.0) | remove the first 3 seconds of the clip =>

OUTPUT
[{"op":"trim","clip":"c1","in":3.0,"out":8.0}]

Supported operations (v1): trim, split, import, append, delete, reorder, export.

Run it

Run this model locally, on CPU, with the open-source SparseMind Runtime — no PyTorch, no cloud, no architecture code needed. The ONNX version is in this repo (gc_editor.onnx + gc_editor.onnx.data, ~111 MB), with the tokenizer (gearcut_tok.model) and the run_gc_editor.py launcher. Download them from the Files tab into the sparsemind-runtime folder, then:

git clone https://github.com/amforge1/sparsemind-runtime
cd sparsemind-runtime
pip install -r requirements.txt
python run.py --model gc_editor.onnx --tokenizer gearcut_tok.model \
              --prompt "clips: c1=intro.mp4(0.0-8.0) | remove the first 3 seconds of the clip =>" --max-new 128

ONNX parity verified 22 Nov 2026: max logits difference 6.7e-06 vs PyTorch, identical argmax, ~2.5× faster on CPU. The PyTorch checkpoint (gc_editor.pt) is also in this repo.

Model details

Architecture SparseMind (decoder-only, sparse)
Parameters 28,759,300 (~28.8M)
Hidden size / layers 384 / 8
Context length 256 tokens
Tokenizer GearCut dedicated SentencePiece-BPE, vocab 682
Precision fp32

Evaluation

Measured on a held-out synthetic validation split. The meaningful metrics are not perplexity but whether the generated operations are usable:

Metric Score
Valid JSON 100.0%
Exact match (operations == reference) 76.5%
Best exact match during training 88.0%

Training data

Trained on 85,000 synthetically generated (timeline + instruction -> operations) examples for 3000 steps. The generator covers the v1 operation set with varied phrasings, clip references, file names, timestamps, and presets.

Intended use & scope

Intended as the natural-language command layer inside the GearCut editor. It is not a general-purpose assistant and only emits GearCut operations.

Limitations

  • Synthetic training data. The model is strongest on phrasings close to the generator's templates. Unusual real-world wording may be handled less reliably until the data is expanded with real examples.
  • English only (v1). A bilingual (EN/FR) version is planned.
  • Narrow operation set (v1). Transitions, multi-track, and effects are not yet covered.
  • Custom architecture. The HF inference widget is disabled; load and run the model with the snippet below.

How to use

# Download gc_editor.pt + the GearCut tokenizer from this repo, then rebuild the
# SparseMind model with the same config stored in the checkpoint and load weights.
import torch, sentencepiece as spm
ckpt = torch.load("gc_editor.pt", map_location="cpu")
cfg  = ckpt["config"]          # the exact training config
# model = SparseMind(Config(**cfg)); model.load_state_dict(ckpt["model"]); model.eval()
sp = spm.SentencePieceProcessor(); sp.Load("gearcut_tok.model")
prompt = 'clips: c1=intro.mp4(0.0-8.0) | remove the first 3 seconds of the clip =>'
# ids = sp.EncodeAsIds(prompt) ; generate ; stop at EOS ; json.loads the output

Contact

Questions, commercial licensing, or a bug report: contact@ameforge.tech — official AMEFORGE contact. GitHub: github.com/amforge1.

License

Released under the Business Source License 1.1 (see LICENSE). Free for personal, academic and small-business use (annual revenue under $100,000); commercial license available — contact@ameforge.tech.

Citation

@misc{gearcut_editor,
  title  = {GearCut Editor: an instruction-to-operations model for lightweight video editing},
  author = {AMEFORGE},
  year   = {2026},
  note   = {Built on the SparseMind architecture}
}

En français

gc_editor est un petit modèle qui transforme une consigne de montage vidéo en langage courant en une liste d'opérations structurées (JSON), exécutées ensuite par GearCut (FFmpeg). Il tourne en local, sur CPU : aucune vidéo ne quitte la machine.

Développé par AMEFORGE, sur l'architecture maison SparseMind.

Pour le faire tourner : le lanceur open source SparseMind Runtime, sans PyTorch ni cloud. Pour l'essayer sans rien installer : la démo GearCut en direct. La version ONNX de ce modèle est désormais dans ce dépôt. Licence : Business Source License 1.1, voir le fichier LICENSE. Contact officiel : contact@ameforge.tech.

Downloads last month
8
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Space using AMFORGE/gc_editor 1