Model reference · open weights

tofu_ft_phi-1.5

LLMs locuslab Text gen 1 build Open weights 36k dl/mo

tofu_ft_phi-1.5 is an open-weight language model from locuslab. tofu_ft_phi-1.5 (BF16) weighs 2.8 GB; the smallest configuration that runs it is RTX 3060 12 GB.

For self-hosting, compare this build's requirements below with the GPU you plan to rent.

  • tofu_ft_phi-1.5 is a 1.4B parameter text-generation model developed by locuslab.
  • It is a fine-tuned version of Microsoft's Phi-1.5, designed for research into machine unlearning and data privacy.
  • The model supports a context length of 2048 tokens and is released under the apache-2.0 licence.

Summary of the locuslab/tofu_ft_phi-1.5 model card, 2026-10-01

What it is

Released bylocuslab
Released2024-01-31
Parameters1.4B
VRAM2.8 GB for the weights

What it runs on

Memory and cards for tofu_ft_phi-1.5 (BF16)

2.8 GBweights, file size
197 MBcache per 1K tokens
583 MBruntime overhead, at least
2,048 tokenscontext max
CardRequests at onceContext maxMemory
2K each
RTX 3060 12 GB20all 2K11.6 GB
RTX 4060 Ti 16 GB29all 2K15.4 GB
RTX 3090 24 GB49all 2K23.4 GB
RTX 4090 24 GB49all 2K23.4 GB
RTX 5090 32 GB68all 2K31.0 GB
L40S 48 GB100all 2K44.0 GB
A100 80 GB185all 2K78.2 GB
H100 80 GB178all 2K78.1 GB
RTX PRO 6000 Blackwell 96 GB217all 2K93.8 GB
DGX Spark (GB10) 128 GB unified250all 2K107 GB
H200 141 GB326all 2K138 GB
B200 180 GB420all 2K176 GB
Memory needed at each load
Requests at once2K tokens each
13.8 GB
55.4 GB
86.6 GB
169.9 GB
3216.3 GB
6429.2 GB

One card, with vLLM's small-card settings.

From the model card

What locuslab says about tofu_ft_phi-1.5

Read the model card

Welcome to the repository for the Phi-1.5 model, fine-tuned on the TOFU (Task of Fictitious Unlearning) dataset. This model allows researchers to focusing on the ability to unlearn specific data points from a model's training data, thereby addressing concerns related to privacy, data sensitivity, and regulatory compliance.

Quick Links

Overview

The TOFU dataset is a novel benchmark specifically designed to evaluate the unlearning performance of large language models (LLMs) across realistic tasks. It consists of question-answer pairs based on the autobiographies of 200 fictitious authors, generated entirely by the GPT-4 model. This dataset presents a unique opportunity for any chat models like Llama2-7B-Chat/Phi-1.5 to demonstrate their capacity for selective data unlearning.

Model Description

Phi-1.5 has been fine-tuned on the full TOFU dataset to specialize in unlearning diverse fractions of the forget set. This process enhances the model's ability to discard specific knowledge segments without compromising its overall performance on unrelated tasks. This version of Phi-1.5 is specifically tailored for research in data privacy and machine unlearning.

Applicability

The fine-tuned model is compatible with a broad range of research applications, including but not limited to:

  • Privacy-preserving machine learning
  • Regulatory compliance in AI
  • Exploring the dynamics of knowledge retention and forgetting in AI systems

Technical Specifications

  • Base Model: Phi-1.5 (from Microsoft)

  • Dataset: TOFU (full)

  • Fine-tuning Methodology: Task-specific fine-tuning on question-answer pairs for unlearning performance

  • Compatible Frameworks: The model is readily usable with frameworks supporting Phi models.

    Getting Started

To use the fine-tuned Phi-1.5 model, follow these steps:

Installation

Ensure you have Python 3.10+ installed. Then, install the required packages:

pip install transformers
pip install datasets

Loading the Model

You can load the model using the Transformers library:

from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "locuslab/tofu_ft_phi-1.5"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(model_name)

Usage Example:

inputs = tokenizer.encode("Your prompt here", return_tensors='pt')
outputs = model.generate(inputs)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))

Codebase

The code for training the models and the availability of all fine-tuned models can be found at our GitHub repository.

Citing Our Work

If you find our codebase and dataset beneficial, please cite our work:

@misc{tofu2024,
      title={TOFU: A Task of Fictitious Unlearning for LLMs},
      author={Pratyush Maini and Zhili Feng and Avi Schwarzschild and Zachary C. Lipton and J. Zico Kolter},
      year={2024},
      archivePrefix={arXiv},
      primaryClass={cs.LG}
}

Quoted from the model card on Hugging Face. The full card is behind the Hugging Face link above.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms