Who it is forAn ML practitioner who wants to adapt a published EBFM base model to a conversation or instruction dataset.
The problemAdapting a pretrained base model requires the right entry point, checkpoint reference, and dataset name.
The outcomeA supervised fine-tuning run that starts from the chosen Hugging Face model and writes outputs to the standard layout.
What you need first
- 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)
Steps
- Run
uv sync --extra gpu --extra hf --extra webandsource .venv/bin/activateto set up the environment. - Run
bash runs/prepare_data.sh --datasets dclmor otherwise make sure your SFT data is available (the README says data is not included in the repository). - Run
TARGET_TOTAL_TOKENS=100000000 bash runs/sft.sh --dataset_name ebfm_sft --finetuning_model_ckpt guan-wang/EBFM-DCLM-1Bto start fine-tuning. (inferred, check the README) - Check
outputs/checkpoints_hf/after the run for the exported fine-tuned model.
Prompt for your agent
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.
Caveat. The README names ebfm_sft as an example dataset name but does not describe how to prepare that dataset, so the data setup step may need extra work.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Disclaimer
Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked "Seen in the wild", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email [email protected] and we will look at it promptly. Full disclaimer page