Run this model with HF Jobs

Run codellama/CodeLlama-70b-Instruct-hf 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/codellama/CodeLlama-70b-Instruct-hf. 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/codellama/CodeLlama-70b-Instruct-hf 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/codellama/CodeLlama-70b-Instruct-hf. 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/codellama/CodeLlama-70b-Instruct-hf. 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.

Update `max_position_embeddings` to 4096

#6
by yard1 - opened

The model has a 4096 tokens context length, which should be correctly reflected in the config.json.

See https://github.com/facebookresearch/codellama/blob/1af62e1f43db1fa5140fa43cb828465a603a48f3/llama/model.py#L277 in reference implementation (self.params.max_seq_len * 2 where self.params.max_seq_len == 2048). Also confirmed offline with a Meta engineer.

This would also apply to other 70b models, I imagine?

+1

Thanks for the fix!

osanseviero changed pull request status to merged

Sign up or log in to comment