Skip to content

feat:llama3.1-8b accuracy#100

Merged
attafosu merged 15 commits intomainfrom
feat/attafosu/llama3.1-8b-acc
Jan 26, 2026
Merged

feat:llama3.1-8b accuracy#100
attafosu merged 15 commits intomainfrom
feat/attafosu/llama3.1-8b-acc

Conversation

@attafosu
Copy link
Copy Markdown
Collaborator

@attafosu attafosu commented Jan 20, 2026

What does this PR do?

Adds config for accuracy run
Requires #97

Rouge scores:

Legacy-loadgen ref: {"rouge1": 38.78, "rouge2": 15.91, "rougeL": 24.5, "rougeLsum": 35.79, "gen_len": 8167644, "gen_num": 13368}
Endpoint-client: {"rouge1": 39.96, "rouge2": 16.61, "rougeL": 25.23, "rougeLsum": 36.87, "gen_len": 8095741, "gen_num": 13368}

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor/cleanup

Related issues

Resolves #56

Testing

  • Tests added/updated
  • All tests pass locally
  • Manual testing completed

Checklist

  • Code follows project style
  • Pre-commit hooks pass
  • Documentation updated (if needed)

Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Copilot AI review requested due to automatic review settings January 20, 2026 06:49
@github-actions
Copy link
Copy Markdown

github-actions bot commented Jan 20, 2026

MLCommons CLA bot All contributors have signed the MLCommons CLA ✍️ ✅

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @attafosu, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the evaluation framework for the Llama 3.1-8B model by integrating dedicated accuracy testing capabilities. It updates existing benchmark configurations to align with '.jsonl' dataset formats, fine-tunes generation parameters for consistency, and refines runtime and client settings to improve the reliability and efficiency of both performance and accuracy measurements. The changes are designed to provide a more robust system for assessing the model's summarization quality using ROUGE metrics.

Highlights

  • Accuracy Configuration: Introduced new configurations to enable accuracy runs for the Llama 3.1-8B model, specifically for ROUGE score evaluation.
  • Dataset Format Update: Standardized dataset file extensions from '.json' to '.jsonl' across relevant scripts and configurations.
  • Parameter Tuning: Adjusted model parameters, such as setting 'temperature' to '0.0' in both offline and online configurations for deterministic generation.
  • Runtime and Client Adjustments: Modified runtime durations, increased client workers, and added 'n_samples_to_issue' in both offline and online configurations for more controlled and efficient benchmarking.
  • Online Load Pattern Change: Switched the online load pattern from 'poisson' to 'concurrency' with a target concurrency of 128.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds configuration for running accuracy benchmarks on the Llama 3.1-8B model using the CNN/DailyMail dataset. The changes update the example configurations to support accuracy evaluation with ROUGE scoring and adjust various runtime parameters for proper accuracy measurement.

Changes:

  • Updated model and dataset configurations to support accuracy evaluation with ROUGE metrics
  • Changed temperature from 1.0 to 0.0 for deterministic generation during accuracy runs
  • Modified dataset file format from .json to .jsonl across all configurations

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
examples/05_Llama3.1-8B_Example/online_llama3_8b_cnn.yaml Added accuracy dataset configuration with ROUGE evaluation, updated load pattern to concurrency-based, and changed file format to jsonl
examples/05_Llama3.1-8B_Example/offline_llama3_8b_cnn.yaml Updated to use jsonl format, adjusted runtime durations, and increased worker count
examples/05_Llama3.1-8B_Example/download_cnndm.py Changed output file extension from .json to .jsonl

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds configuration for Llama3.1-8B accuracy runs. The changes are generally good, updating file formats to JSONL, adjusting model parameters for deterministic output, and setting up datasets for accuracy and performance tests. My review focuses on improving the portability and clarity of the example configuration files. I've suggested making the model path more generic and refactoring the dataset configuration to remove redundancy and use a more descriptive name.

attafosu and others added 2 commits January 19, 2026 22:54
Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 20, 2026 06:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@attafosu attafosu marked this pull request as ready for review January 20, 2026 07:04
@attafosu attafosu requested a review from a team as a code owner January 20, 2026 07:05
@attafosu attafosu marked this pull request as draft January 21, 2026 16:49
Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Copilot AI review requested due to automatic review settings January 21, 2026 21:58
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Copilot AI review requested due to automatic review settings January 22, 2026 00:23
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +113 to +117
force_regenerate: bool = False,
) -> "Dataset":
transforms = (transforms or []) + cls.PRESETS.llama3()
df = cls.generate(force=force_regenerate, datasets_dir=datasets_dir)
return cls(df, transforms=transforms, repeats=num_repeats)
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The transforms parameter is being overridden by appending preset transforms, which prevents callers from fully controlling the transform pipeline. Consider either applying presets first (so caller transforms can override) or making the preset application optional via a parameter.

Suggested change
force_regenerate: bool = False,
) -> "Dataset":
transforms = (transforms or []) + cls.PRESETS.llama3()
df = cls.generate(force=force_regenerate, datasets_dir=datasets_dir)
return cls(df, transforms=transforms, repeats=num_repeats)
apply_presets: bool = True,
force_regenerate: bool = False,
) -> "Dataset":
if apply_presets:
final_transforms: list[Transform] = (transforms or []) + cls.PRESETS.llama3()
else:
final_transforms = transforms or []
df = cls.generate(force=force_regenerate, datasets_dir=datasets_dir)
return cls(df, transforms=final_transforms, repeats=num_repeats)

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

…/__init__.py


Sanitize logger

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings January 22, 2026 00:32
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Copilot AI review requested due to automatic review settings January 22, 2026 08:20
@attafosu attafosu marked this pull request as ready for review January 22, 2026 08:20
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +112 to +113
) -> "Dataset":
transforms = cls.PRESETS.llama3() + (transforms or [])
Copy link

Copilot AI Jan 22, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The preset transforms are hardcoded to llama3(), but the function accepts a transforms parameter that could conflict with or duplicate the preset transforms. Consider either making the preset configurable or documenting that custom transforms will be appended after the llama3 preset.

Suggested change
) -> "Dataset":
transforms = cls.PRESETS.llama3() + (transforms or [])
preset_transforms: list[Transform] | None = None,
) -> "Dataset":
# By default, use the llama3 preset and append any user-provided transforms.
# Callers can override or disable presets by passing `preset_transforms`.
if transforms is None:
transforms = []
if preset_transforms is None:
preset_transforms = cls.PRESETS.llama3()
transforms = preset_transforms + transforms

Copilot uses AI. Check for mistakes.
Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
Copilot AI review requested due to automatic review settings January 22, 2026 08:33
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 11 out of 11 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@attafosu
Copy link
Copy Markdown
Collaborator Author

@nvzhihanj @arekay-nv please review when you get the chance. thx

Copilot AI review requested due to automatic review settings January 23, 2026 17:43
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 8 out of 8 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +113 to +117
force_regenerate: bool = False,
) -> "Dataset":
transforms = (transforms or []) + cls.PRESETS.llama3()
df = cls.generate(force=force_regenerate, datasets_dir=datasets_dir)
return cls(df, transforms=transforms, repeats=num_repeats)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1

Signed-off-by: attafosu <thomas.atta-fosu@intel.com>
@attafosu attafosu merged commit eb135b1 into main Jan 26, 2026
4 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Jan 26, 2026
@attafosu attafosu deleted the feat/attafosu/llama3.1-8b-acc branch January 26, 2026 16:31
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Llama3.1-8b] Accuracy evaluation and baseline

3 participants