Run this model with HF Jobs

Run replit/replit-code-v1-3b 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/replit/replit-code-v1-3b. 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/replit/replit-code-v1-3b 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/replit/replit-code-v1-3b. 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/replit/replit-code-v1-3b. 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.

Does this work with HF Inference API?

#18
by sagardesai - opened

I was met with this when I tried running replit-code-v1-3b via the Inference API:

Loading replit/replit-code-v1-3b requires you to execute the configuration file in that repo on your local machine. Make sure you have read the code there to avoid malicious use, then set the option trust_remote_code=True to remove this error.

I was wondering if/why it would be necessary to do anything locally , haven't had to do that for any other models like Google's flan-t5-xxl.

Thanks!

You will need a custom handler. I have requested that the HF team write an example of one using the MPT architecture, so hopefully that will be added to the docs soon.

deleted

Thanks @sam-mosaic for being a step ahead and helping out as always!

Sign up or log in to comment