Transformers
Safetensors
openlm

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.

import from open_lm.hf fails

#8
by alexf99 - opened

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.

Sign up or log in to comment

⌂ 换网址