Skip to content

Add MMLU Script #245

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

DEBADAS001KERNEL
Copy link

@DEBADAS001KERNEL DEBADAS001KERNEL commented Apr 4, 2025

I have provided a file that includes two Python scripts describing the automation of using the Google Gemma 7B model on the MMLU dataset. I have implemented it in two ways: one using Auto Model Encoder and the other using Pipeline for Hugging Face.

Added examples/MMLU_EV----> 1. MMLU_EV_PIPELINE.PY 2. MMLU_EV_AUTOMODEL.PY

STEPS

Load Dataset from Hugging Face.

Use Gemma Model from Hugging Face.

Took 100 sample question

Provide those questions to our model

Generate answer

For checking accuracy:

(Correct ans /total ans)*100.

Print results..

Important Note:
The account Happy Coder is mine. I mistakenly committed from that account—sorry for that.

I have added two codes: one using pipeline and another using AutoModel Encoder.

I have loaded all the MMLU data, chosen 100 samples, and added a simple logic to check accuracy.

It's under main -> examples -> mmlu_ev with two files:

MMLU_EV_PIPELINE

MMLU_EV_AUTOMODEL
I have added two codes: one using pipeline and another using AutoModel Encoder.

I have loaded all the MMLU data, chosen 100 samples, and added a simple logic to check accuracy.

It's under main -> examples -> mmlu_ev with two files:

MMLU_EV_PIPELINE

MMLU_EV_AUTOMODEL
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

Successfully merging this pull request may close these issues.

1 participant