Run this model with HF Jobs

Run tiiuae/falcon-40b-instruct 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/tiiuae/falcon-40b-instruct. 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/tiiuae/falcon-40b-instruct 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/tiiuae/falcon-40b-instruct. 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/tiiuae/falcon-40b-instruct. 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.

About Input validation error: `inputs` tokens + `max_new_tokens` must be <= 1512.

#47
by Holynull - opened

I always got an following error from AWS Sagemaker Inference Endpoint. When I use langchain create a qa chain, its prompt template has more then 1000 tokens in general. How to solve this issue?

{"error":"Input validation error: `inputs` tokens + `max_new_tokens` must be <= 1512. Given: 1682 `inputs` tokens and 200 `max_new_tokens`","error_type":"validation"}

I also encountered the same problem. Did you find the solution?

Having the same issue with meta-llama/Llama-2-13b-chat-hf. Where is this 1512 limitation coming from?

Support explained: You can configure those when creating your endpoint. On inference endpoints in the UI when creating, in the advanced configuration section there are two fields: "max input length" and "max number of tokens". The latter is where the 1512 limitation is coming from. Change to your needs. I find it tricky to figure out which values are ok for the model and the platform, so far it's been try&error.

Sign up or log in to comment