Run this model with HF Jobs

Run facebook/xglm-564M 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/facebook/xglm-564M. 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/facebook/xglm-564M 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/facebook/xglm-564M. 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/facebook/xglm-564M. 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.

Add TF weights

#1
by joaogante - opened

Validated by the pt_to_tf CLI. Max crossload hidden state difference=1.121e-05; Max converted hidden state difference=1.121e-05.

The weights look good according to our conversion tool, but they take 2x storage. Are these weights stored in a 16-bit format? ( @valhalla )

Related to this GH PR: https://github.com/huggingface/transformers/pull/16543

EDIT -- after checking with stricter tests, there are further differences between PT and TF. The original question is still relevant, but do not merge these weights.

Sounds good! @valhalla do you know?

Just checked the PT weights are in float16 indeed. BTW an easy rule of thumb is "size of model checkpoint" / 4 = model parameters if in float32 . Here 1GB file would mean 250M parameters but we have 564 -> so it's most likely fp16

That makes sense. There is a slightly higher PT-to-TF error than usual (~1e-4) in the internal layers, but being float16 probably explains the difference πŸ‘

Merging!

joaogante changed pull request status to merged

Sign up or log in to comment