Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Llama-3.2-1B-Instruct - reproduce MMLU score of 49.3 #243

Open
Alexey234432 opened this issue Dec 12, 2024 · 0 comments
Open

Llama-3.2-1B-Instruct - reproduce MMLU score of 49.3 #243

Alexey234432 opened this issue Dec 12, 2024 · 0 comments

Comments

@Alexey234432
Copy link

Hi,

Thanks for the model release.

I am using Llama-3.2-1B-Instruct model with hugging face and can't reproduce MMLU score of 49.3. My 5 shot eval ended up with 46.65 instead. I wonder what is wrong with my setup, any examples of how exactly to compose a prompt?

I've used this as a starting point https://github.com/QwenLM/Qwen/blob/main/eval/evaluate_mmlu.py and modified model init to

def load_models_tokenizer(args):
    from transformers import pipeline

    model_id = "meta-llama/Llama-3.2-1B-Instruct"
    pipe = pipeline(
        "text-generation",
        model=model_id,
        torch_dtype=torch.float32,
        device_map="auto",
    )


    tokenizer = pipe.tokenizer
    model = pipe.model
    tokenizer.pad_token = tokenizer.eos_token

    return model, tokenizer

any pointers on what can be wrong with my setup or examples of exact prompt etc I should use?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant