DEDUPED Hot AI repos. Real use cases. What people build. Get the Monday 5

How to use OpenEBFM: what you can do with it

What is OpenEBFM? OpenEBFM is open-source Python code for training, scaling, evaluating, and chatting with energy-based foundation language models.

How do I use it? Run uv sync --extra gpu --extra hf --extra web to install the GPU, Hugging Face, and web-chat dependencies; then run source .venv/bin/activate to activate the environment; run bash runs/prepare_data.sh --datasets dclm on a machine with network access to download and tokenize DCLM. Full steps below.

Trended earlier

View repo on GitHub

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer

4 use cases

  • Pretrain an EBFM model to a chosen token budget

    Prepare DCLM data and run a full pretraining job with a set token count.

    View prompt
    Using the OpenEBFM repo (datamllab/OpenEBFM), prepare the dclm dataset and run pretraining with TARGET_TOTAL_TOKENS set to <token_budget> via runs/train.sh. Report the path of the final checkpoints_hf/ export and confirm it contains config.json and model.safetensors.
  • Chat with the published EBFM SFT model in a browser

    Serve the EBFM-FineWeb-1B-CHAT model through a local web chat interface.

    View prompt
    In the datamllab/OpenEBFM repo, start the web chat with runs/chat.sh using guan-wang/EBFM-FineWeb-1B-CHAT on host 0.0.0.0 and port <port>. Report the URL to open and confirm the server responds on that port.
  • Fine-tune a published EBFM checkpoint with SFT

    Start supervised fine-tuning from a Hugging Face EBFM model using the SFT launcher.

    View prompt
    In the datamllab/OpenEBFM repo, run runs/sft.sh with --finetuning_model_ckpt set to <hf_model_id> and --dataset_name set to <dataset_name>. Report the output directory and confirm checkpoints_hf/ was created.
  • Measure BPB and QA scores for an EBFM checkpoint

    Run position-wise BPB and QA evaluation on a published model and collect results.

    View prompt
    In the datamllab/OpenEBFM repo, run runs/eval.sh for BPB and runs/qa.sh for QA on the checkpoint <hf_model_id>, using the local snapshot directory for the tokenizer path. Report the results/ paths and confirm token_bytes.pt was found in the snapshot.

Quick start with OpenEBFM

  1. Check you have what it needs: Python with uv installed; A GPU environment (the README installs the gpu extra and loads checkpoints with device="cuda"); Network access for data preparation and Hugging Face downloads.
  2. Open datamllab/OpenEBFM on GitHub and read the README and license.
  3. Run uv sync --extra gpu --extra hf --extra web to install the GPU, Hugging Face, and web-chat dependencies.
  4. Run source .venv/bin/activate to activate the environment.
  5. Run bash runs/prepare_data.sh --datasets dclm on a machine with network access to download and tokenize DCLM.
  6. Run TARGET_TOTAL_TOKENS=100000000 bash runs/train.sh to start pretraining with a 100M token budget.

These steps come from our top use case, Pretrain an EBFM model to a chosen token budget, which also has a copy-paste agent prompt.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for datamllab/OpenEBFM

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Best AI repos for Research

About this repo

  • Who it is forMachine learning researchers and engineers with GPU access who want to pretrain, fine-tune, or evaluate energy-based language models.
  • Why it is hot301 stars, launched 49 days ago
  • LanguagePython
  • Sourcegithub.com/datamllab/OpenEBFM · Back to Hot repos

Requirements

  • Python with uv installed
  • A GPU environment (the README installs the gpu extra and loads checkpoints with device="cuda")
  • Network access for data preparation and Hugging Face downloads
  • Enough disk space for the datasets and checkpoints (sizes are not stated in the README)

Add this badge to your README

Maintain OpenEBFM? Show readers where to find these use cases. Use cases on Deduped

Markdown

[![Use cases on Deduped](https://dedupedai.com/badge/datamllab/OpenEBFM.svg)](https://dedupedai.com/use-cases/datamllab-openebfm/?utm_source=github&utm_medium=badge&utm_campaign=datamllab-OpenEBFM)

HTML

<a href="https://dedupedai.com/use-cases/datamllab-openebfm/?utm_source=github&amp;utm_medium=badge&amp;utm_campaign=datamllab-OpenEBFM"><img src="https://dedupedai.com/badge/datamllab/OpenEBFM.svg" alt="Use cases on Deduped" height="20"></a>

A static image, no tracking script. About the badge

Questions about OpenEBFM

What is OpenEBFM?

OpenEBFM is open-source Python code for training, scaling, evaluating, and chatting with energy-based foundation language models. It is an open-source project on GitHub: https://github.com/datamllab/OpenEBFM.

How do I use OpenEBFM?

Run uv sync --extra gpu --extra hf --extra web to install the GPU, Hugging Face, and web-chat dependencies; then run source .venv/bin/activate to activate the environment; run bash runs/prepare_data.sh --datasets dclm on a machine with network access to download and tokenize DCLM. The use cases on this page give the full steps and a copy-paste agent prompt for each job.

Who is OpenEBFM for?

Machine learning researchers and engineers with GPU access who want to pretrain, fine-tune, or evaluate energy-based language models.

What can I do with OpenEBFM?

4 use cases so far, for example: Pretrain an EBFM model to a chosen token budget; Chat with the published EBFM SFT model in a browser; Fine-tune a published EBFM checkpoint with SFT. Each has steps and a copy-paste agent prompt.

What do I need to run OpenEBFM?

Python with uv installed; A GPU environment (the README installs the gpu extra and loads checkpoints with device="cuda"); Network access for data preparation and Hugging Face downloads; Enough disk space for the datasets and checkpoints (sizes are not stated in the README).

What are alternatives to OpenEBFM?

Other hot AI repos in Research: Deep Tutor, Local Deep Research, Project Nomad, Nanochat, We Knora.

Is OpenEBFM safe to run?

Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.