Run this model with HF Jobs

Run Salesforce/xgen-7b-8k-base 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/Salesforce/xgen-7b-8k-base. 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/Salesforce/xgen-7b-8k-base 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/Salesforce/xgen-7b-8k-base. 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/Salesforce/xgen-7b-8k-base. 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.

fine tune the model for custom dataset

#24
by NajiAboo - opened

I am trying to fine-tune the model with the custom dataset. Any help on this is highly appreciated.
Thanks in advance

help on this would be very useful. Thanks!

following this.

Hopefully we get a resource for a straight-forward fine-tuning process for XGen-7b like in llama.

Hi everyone

As x-gen has the same architecture as Llama you can easily extend this gist: https://gist.github.com/younesbelkada/9f7f75c94bdc1981c8ca5cc937d4a4da to make use of x-gen and run it on your custom dataset.
Since the model is a 7b model you can also fine-tune it easily on a free-tier google colab instance by following for example this tutorial: https://colab.research.google.com/drive/1DNenc5BpdqaS10prtklYyIe9qW_7gUnb but run it on xgen instead.

Thanks.

Sign up or log in to comment