Run this model with HF Jobs

Run HuggingFaceH4/starchat2-15b-v0.1 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/HuggingFaceH4/starchat2-15b-v0.1. Ask me which dataset to train on, then push the LoRA adapter to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs and Transformers to run batch inference with https://huggingface.co/HuggingFaceH4/starchat2-15b-v0.1 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the predictions back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs and Lighteval to evaluate https://huggingface.co/HuggingFaceH4/starchat2-15b-v0.1. 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/HuggingFaceH4/starchat2-15b-v0.1 with Transformers and bitsandbytes. 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.

the model loves to generate: // Your code here

#3
by Meital - opened

Hi, thanks for training the model!

Have you noticed that the model really likes to complete code with:
// Your code here
or its python version of
# Your code here

I try to run some evals on it, and in many cases, it just completes my code with this placeholder.
I know it is a chat model, and it works excellent for conversions, but I wanted to take it for humaneval spin to check its programming abilities, and I get for python much less than your 70 because it doesn't want to generate my the code in many cases :(

any idea?

It works good for code or text completion.

Here is my system prompt:
You are a text completion machine.
Finish the following text starting from the last symbol:

Test case:
In JavaScript, the .find() function is used on arrays to locate the first element in the array that satisfies the provided testing function.
In Python, a similar functionality can be achieved using a list comprehension or the filter() function.
Here's how you can achieve the equivalent of .find() in JavaScript using Python:
Using list comprehen

Answer:
sion:

                def find_in_python(lst, func):
                    for element in lst:
                        if func(element):
                            return element
                    return None  # If no matching element is found
                    # model answer....

....

Sign up or log in to comment