Run this model with HF Jobs
Run apple/DCLM-7B on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/apple/DCLM-7B. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/apple/DCLM-7B on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use apple/DCLM-7B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use apple/DCLM-7B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("apple/DCLM-7B", device_map="auto") - Notebooks
- Google Colab
- Kaggle
import from open_lm.hf fails
I've finally managed to get open_lm to install on Google Colab. However
from open_lm.hf import *
fails with: ModuleNotFoundError: No module named 'open_lm.hf'
I can import from open_lm but not the .hf module
Any ideas?
The same thing happened to me. After a bit of messing around, I tried:
!pip install -q -U --no-deps git+https://github.com/mlfoundations/open_lm.git
!pip install -q -U xformers
on my notebook and it works. I was able to get the model up and running without any more errors.
Note: When importing, it will give you a ton of warnings about how 'open-lm 0.0.34 requires zstandard, which is not installed' and this and that. Just ignore them. The model will run normally.