Khaled-Elsaka / unilm

Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities
https://aka.ms/GeneralAI
MIT License
0 stars 0 forks source link

Fix translation inference error and set task attribute in DeltaLMModel #3

Closed sweep-ai[bot] closed 1 year ago

sweep-ai[bot] commented 1 year ago

Description

This PR fixes the translation inference error in the unilm/deltalm/test.py file and sets the task attribute in the DeltaLMModel class to enable translation tasks.

Summary of Changes

These changes ensure that the task attribute is properly set in the model configuration, allowing for successful translation inference.

Please review and merge this PR. Thank you!

Fixes #1.


To checkout this PR branch, run the following command in your terminal:

git checkout sweep/fix-translation-inference-error

To get Sweep to edit this pull request, leave a comment below or in the code. Leaving a comment in the code will only modify the file but commenting below can change the entire PR.