What do you want to do?
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.
- REPO
datamllab/OpenEBFM - Research
- Advanced
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.
- REPO
-
Chat with the published EBFM SFT model in a browser
Serve the EBFM-FineWeb-1B-CHAT model through a local web chat interface.
- REPO
datamllab/OpenEBFM - Research
- Intermediate
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.
- REPO
-
Fine-tune a published EBFM checkpoint with SFT
Start supervised fine-tuning from a Hugging Face EBFM model using the SFT launcher.
- REPO
datamllab/OpenEBFM - Research
- Advanced
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.
- REPO
-
Measure BPB and QA scores for an EBFM checkpoint
Run position-wise BPB and QA evaluation on a published model and collect results.
- REPO
datamllab/OpenEBFM - Research
- Intermediate
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.
- REPO
Quick start with OpenEBFM
- 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.
- Open datamllab/OpenEBFM on GitHub and read the README and license.
- Run
uv sync --extra gpu --extra hf --extra webto install the GPU, Hugging Face, and web-chat dependencies. - Run
source .venv/bin/activateto activate the environment. - Run
bash runs/prepare_data.sh --datasets dclmon a machine with network access to download and tokenize DCLM. - Run
TARGET_TOTAL_TOKENS=100000000 bash runs/train.shto 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
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout 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.
Markdown
[](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&utm_medium=badge&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.