Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • D DeepPavlov
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 18
    • Issues 18
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 22
    • Merge requests 22
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • DeepPavlov
  • DeepPavlov
  • Merge requests
  • !1579

Multitask transformer-agnostic model

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Andrei Glinskii requested to merge github/fork/dimakarp1996/clean_multitask_ready into dev Jul 11, 2022
  • Overview 11
  • Commits 269
  • Pipelines 0
  • Changes 33

Created by: dimakarp1996

Added multitask transformer-agnostic model. Supported kinds of tasks - classification, regression, NER, multiple choice.

FIle multitask_example.json is an example of using multitask with all these kinds of tasks. FIle config_glue.json is the example of GLUE config. All configs are being trained and evaluated in the same way as original DeepPavlov configs.

File proba2labels.py is modified so as we can use it with many inputs rather than with one, thus simplifying config. Note that, to increase multitask performance, it is better to have only 1 task in every batch ( just like author of http://github.com/namisan/mt-dnn did). However, while iterating we need to have samples from every task on every step. So in that code Nones are passed where we have no samples to solve this problem. Correct handling of these Nones required modification in core.

Multitask model also supports single-task mode.

As the model is transformer-agnostic, it supports different kinds of transformers.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: github/fork/dimakarp1996/clean_multitask_ready