Run this model with HF Jobs

Run bigscience/bloom-1b7 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 and TRL to fine-tune https://huggingface.co/bigscience/bloom-1b7. 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/bigscience/bloom-1b7 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.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/bigscience/bloom-1b7. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/bigscience/bloom-1b7. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Unable to decode text I get this error.

#14
by aryan1107 - opened

AttributeError: 'BloomTokenizerFast' object has no attribute 'tokenizer'

My code is something like this:

from transformers import AutoTokenizer, BloomForCausalLM

tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-1b3")

model = BloomForCausalLM.from_pretrained("bigscience/bloom-1b3")

prompt = "Today I believe we can finally"

input_ids = tokenizer(prompt, return_tensors="pt").input_ids

generate up to 30 tokens

outputs = model.generate(input_ids, do_sample=False, max_length=30)

tokenizer.batch_decode(outputs, skip_special_tokens=True)

BigScience Workshop org

Hi @aryan1107 !
Thanks for your message,
I just tried this script:

from transformers import AutoTokenizer, BloomForCausalLM

tokenizer = AutoTokenizer.from_pretrained("bigscience/bloom-1b3")

model = BloomForCausalLM.from_pretrained("bigscience/bloom-1b3")

prompt = "Today I believe we can finally"

input_ids = tokenizer(prompt, return_tensors="pt").input_ids

outputs = model.generate(input_ids, do_sample=False, max_length=30)

print(tokenizer.batch_decode(outputs, skip_special_tokens=True))

and seems to work fine on my side, what version of transformers are you using?

Thank you it's working I had made a typo. my bad

aryan1107 changed discussion status to closed

Sign up or log in to comment