Skip to content

FewRel的基础版本,适用于基于FewRel最新版中cuda配置有问题的

License

Notifications You must be signed in to change notification settings

luoweiqi7/FewRel-v1.0

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction of model FewRel

Linkage

The source linkage of git:https://github.com/thunlp/FewRel

environmental requirements

  • OS:Ubuntu 20.04
  • Python version:3.7
  • Dependencies:
    • torch==1.10
    • transformers
    • numpy
    • tqdm
  1. clone:

    git clone git:https://github.com/thunlp/FewRel.git
    cd yourproject
  2. create environment&activate:

    python3 -m venv venv
    source venv/bin/activate

Data Preparation

  1. Download Dataset: The names of our dataset are listed as follows. The partition ratio is 73 The partition ratio is 82 The partition ratio is 91

Experiment

  1. Finetune the model:
    python train_demo.py
  2. Remark: For files and parameter settings, please see the train_demo.py

About

FewRel的基础版本,适用于基于FewRel最新版中cuda配置有问题的

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages