hiyouga/FastEdit
A tool for injecting fresh knowledge into large language models efficiently using model editing algorithms like ROME.

Velocity · 7d
+1.3
★ / day
Trend
→steady
star history
FastEdit provides a command-line interface for editing pre-trained large language models by injecting factual knowledge. It supports multiple model architectures including LLaMA, LLaMA-2, BLOOM, Falcon, and others. The project implements the Rank-One Model Editing (ROME) algorithm and achieves model edits within approximately 10 seconds using PyTorch and Hugging Face Transformers.