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

Simplify training script #15

Closed
AmitMY opened this issue Feb 15, 2025 · 1 comment
Closed

Simplify training script #15

AmitMY opened this issue Feb 15, 2025 · 1 comment

Comments

@AmitMY
Copy link
Contributor

AmitMY commented Feb 15, 2025

As an idea -

The setup script relies on the config file

multimodalhugs-setup \
  --modality "pose2text" \
  --config_path signwriting_transcription/config.yaml

Now that the training script can also just rely on the config file, how about the following?

multimodalhugs-train \
    --task "translation" \
    --config-path "signwriting_transcription/config.yaml"

It can automatically figure out these parameters

    --model_name_or_path $MODEL_PATH \
    --processor_name_or_path $PROCESSOR_PATH \
    --run_name $MODEL_NAME \
    --dataset_dir $DATA_PATH \
    --output_dir $OUTPUT_PATH \

And take everything else from the config.

OPTIONALLY the user could also specify more parameters (for example, learning_rate) but they should probably all go in the config

@GerrySant
Copy link
Owner

With the next version it will be possible to manage almost everything from the configuration itself. However, since we use the HuggingFace Trainer and it requires that we always specify the --output_dir, for now we can simplify the command as:

multimodalhugs-train \
    --task "translation" \
    --config-path "signwriting_transcription/config.yaml" \
    --output_dir "/path/to/your/output_directory"

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

2 participants