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.

Various Prompt Formats

#24
by gsaivinay - opened

Hello,

Can somebody please provide a sample formats for

  • setting system instructions for the model
  • setting a context and asking model to answer questions only based on context

Thanks in advance

Check out the special tokens near the top of the tokenizer.json file. There are special tokens for >>QUESTION<<, >>ANSWER<<, and a few other types you can play with. I've had the best results prompting it like this:

>>QUESTION<<In Python, I want to write a simple HTTP API that receives an object via POST and responds with another object. The request object contains a string prompt, float temperature, and int max_tokens. The response object contains a string response, int prompt_tokens, int completion_tokens. For now just set hard-coded values and get the response out. I'll add the logic myself afterward.
>>ANSWER<<

I haven't tried many of the other tokens out, perhaps >>INTRODUCTION<< is closest to the system prompt?

does anyone have any good prompt examples they can share or prompt templates to test this model?

according to "the bloke", the appropriate prompt to use for Falcon-instruct (which would assume how they formatted text when fine-tuning) is:
A helpful assistant who helps the user with any questions asked.
User: prompt
Assistant:

But I honestly I can't tell if that's just a best guess on his part. @TheBloke ?

I used this for reference: https://github.com/cmp-nct/ggllm.cpp/discussions/36

image.png

@cmp-nct has developed the Falcon GGML (now called GGCC) client and looked into prompt templates a lot.

Although now I look at that again, I see he doesn't show a system message, so maybe I need to check that. But User/Assistant should definitely work. He makes mention of the Falcon special tokens later in the post, which apparently do work too.

@TheBloke thanks for sharing your source!

I'm so frustrated by all of these OS models coming out with huge fan fare, but they never show sample prompts they used in fine tuning, and it's (sometimes) a nightmare trying to figure it out.

@kyleeasterly - could you please point me towards the tokenizer file? I too am confused on conventions around Falcon model prompting.

Also, what is a wizard model?

I think everyone's wrong about >>QUESTION<< and >>ANSWER<<. If you ask a >>QUESTION<<, it'll never output the >>ANSWER<< token on its own, meaning it likely wasn't trained like this.

I don't know what the right answer is, but it does seem eager to stick to a template like:

User Hi there
Mini what's up?

I've seen other users mention Mini too.

Sign up or log in to comment