Skip to content
This repository has been archived by the owner on Nov 22, 2022. It is now read-only.

Replace unit-tests on LMModel and FLLanguageModelingTask by LiteLMModel and FLLiteLMTask #1296

Closed

Conversation

psuzhanhy
Copy link
Contributor

Summary:
Previously, fl_language_model_test.py covers unit-tests on LMModel by comparing LMTask and FLLMTask.

We will ship LiteLMModel instead of LMModel, hence the unit-tests should be using LiteLMModel, LiteLMTask, and FLLiteLMTask instead.

One caveat: we need to import LiteLMTask from fb/tasks.py, however, the import section in fb/tasks.py misses tons of dependencies (I guess no unit-tests was ran on tasks.py?), hence I have to replicate LiteLMTask.

Reviewed By: kmalik22

Differential Revision: D20651264

@facebook-github-bot facebook-github-bot added CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported labels Mar 26, 2020
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20651264

…el and FLLiteLMTask (facebookresearch#1296)

Summary:
Pull Request resolved: facebookresearch#1296

Previously, fl_language_model_test.py covers unit-tests on LMModel by comparing LMTask and FLLMTask.

We will ship LiteLMModel instead of LMModel, hence the unit-tests should be using LiteLMModel, LiteLMTask, and FLLiteLMTask instead.

One caveat: we need to import LiteLMTask from fb/tasks.py, however, the import section in fb/tasks.py misses tons of dependencies (I guess no unit-tests was ran on tasks.py?), hence I have to replicate LiteLMTask.

Reviewed By: kmalik22

Differential Revision: D20651264

fbshipit-source-id: d4843efdea6e4dbc5ffd97963a275ac87337580b
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D20651264

@facebook-github-bot
Copy link
Contributor

This pull request has been merged in 68882be.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity. fb-exported Merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants