Skip to content

Commit

Permalink
Merge branch 'mmodal_eval_in_folder' into 'main'
Browse files Browse the repository at this point in the history
Move mmodal evaluation code to its own folder

See merge request ADLR/megatron-lm!2491
  • Loading branch information
jon-barker committed Dec 23, 2024
2 parents d3c585e + e51a3ac commit 2da43ef
Show file tree
Hide file tree
Showing 10 changed files with 7 additions and 1 deletion.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@
import glob
import json
import os
import sys
import re
import subprocess

# Get the absolute path of the parent directory
parent_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
# Add the parent directory to sys.path
sys.path.insert(0, parent_dir)

from run_text_generation import get_output_path
from config import EvaluationConfig

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion examples/multimodal/run_text_generation.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import torch
import yaml
from config import EvaluationConfig
from evaluation_datasets import get_evaluation_dataset
from evaluation.evaluation_datasets import get_evaluation_dataset
from model import model_provider
from multimodal_args import add_multimodal_extra_args

Expand Down

0 comments on commit 2da43ef

Please sign in to comment.