GitRead 中文社区
首页趋势排行榜原创文章严选周刊
更多资源
新手训练营
精选专题热门话题GitHub 文档资源精选实战指南

jiant

jiant is an nlp toolkit

  • 语言Python
  • 默认分支master
  • 大小4.4 MB
  • 更新2023年7月7日
  • Issues72
在 GitHub 打开
avatarnyu-mll

项目介绍

nyu-mll/jiant 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 1.7k 个 Star、293 次 Fork。

仓库全名
nyu-mll/jiant

README 摘要

🚨Update🚨: As of 2021/10/17, the jiant project is no longer being actively maintained. This means there will be no plans to add new models, tasks, or features, or update support to new libraries. jiant is an NLP toolkit The multitask and transfer learning toolkit for natural language processing research Why should I use jiant? jiant supports multitask learning jiant supports transfer learning jiant supports 50+…

完整内容见 GitHub 原始 README 或本页 。

常见问题

jiant 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 1.7k 个 Star。

jiant 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 jiant 的源码?

可以直接克隆仓库:git clone https://github.com/nyu-mll/jiant.git,默认分支为 master;安装与运行步骤见仓库 README。

jiant 最近还在维护吗?

仓库最近一次更新为 2023年7月7日,当前有 72 个未关闭 Issue;Star 数为 1.7k,可作为社区活跃度的参考。

本页面展示项目元数据与原始 README,GitRead 中文社区 编辑团队负责选题收录。

相关仓库

public-apis/public-apis avatar
public-apispublic-apis
2 天前
499.3k
55.9k
2.7k

免费 API 汇总列表

apipublic-apisfree+7
Python
16.4 MB
7
详情
EbookFoundation/free-programming-books avatar
free-programming-booksEbookFoundation
3 天前
401.6k
67.9k
108

免费可获取的编程书籍

bookseducationhacktoberfest+2
Python
21.8 MB
3
详情
donnemartin/system-design-primer avatar
system-design-primerdonnemartin
9月15日
377.9k
59.3k
647

学习如何设计大规模系统。为系统设计面试做准备。包含 Anki 闪卡。

designdesign-patternsdesign-system+10
Python
11.0 MB
0
详情
vinta/awesome-python avatar
awesome-pythonvinta
1 天前
335.0k
28.0k
0

回答“我想用 Python 做 X,该用哪个工具?”的权威清单

awesomeawesome-listpython+3
Python
6.9 MB
2
详情
practical-tutorials/project-based-learning avatar
project-based-learningpractical-tutorials
6 天前
289.8k
36.8k
218

精选的项目实战教程列表

tutorialprojectbeginner-project+5
Python
472 KB
1
详情
NousResearch/hermes-agent avatar
hermes-agentNousResearch
48 分钟前
263.6k
59.4k
53.3k

与你共同成长的智能体

aiai-agentai-agents+10
Python
1.4 GB
4
详情
TheAlgorithms/Python avatar
PythonTheAlgorithms
2 天前
226.1k
51.3k
116

所有算法均用 Python 实现

algorithmalgorithm-competitionsalgorithms-implemented+11
Python
18.0 MB
2
详情
yt-dlp/yt-dlp avatar
yt-dlpyt-dlp
1 天前
208.1k
18.4k
2.8k

功能丰富的命令行音视频下载器

youtube-dlpythonsponsorblock+4
Python
63.7 MB
0
详情

关于

bertmultitask-learningnlpsentence-representationtransfer-learningtransformers
  • MIT License
  • 1.7k Stars
  • 293 Forks
  • 40 Watching

简要分析

热度分
2301
价值分
1093
活跃状态
活跃
GitHub

语言占比

Python
Shell

Release

  • v2.2.0: Easy to add any HF Transformers style model! DeBERTa added.2021年5月11日
  • Add downloaders for ARCT, MCTest, MCTACO, MuTual, and QuAIL2021年1月9日
  • Add ROPES and RACE tasks2021年1月1日
  • SQuAD Tokenization Fix, Load (only) Encoder Weights 2020年12月4日
  • WinoGrande, FEVER, QuAIL, MCTest, MCTACO2020年11月8日

贡献者

iftenneyiftenneysleepinyourhatsleepinyourhatzphangzphangepavlickepavlickpyerespyeresshuningjinshuningjinjeswanjeswanW4ngatangW4ngatangyukatherinyukatherinHaokunLiuHaokunLiuraghu-pappagariraghu-pappagariyzpangyzpang

🚨Update🚨: As of 2021/10/17, the jiant project is no longer being actively maintained. This means there will be no plans to add new models, tasks, or features, or update support to new libraries.

jiant is an NLP toolkit

The multitask and transfer learning toolkit for natural language processing research

Generic badge codecov CircleCI Code style: black License: MIT

Why should I use jiant?

  • jiant supports multitask learning
  • jiant supports transfer learning
  • jiant supports 50+ natural language understanding tasks
  • jiant supports the following benchmarks:
    • GLUE
    • SuperGLUE
    • XTREME
  • jiant is a research library and users are encouraged to extend, change, and contribute to match their needs!

A few additional things you might want to know about jiant:

  • jiant is configuration file driven
  • jiant is built with PyTorch
  • jiant integrates with datasets to manage task data
  • jiant integrates with transformers to manage models and tokenizers.

Getting Started

  • Get started with some simple Examples
  • Learn more about jiant by reading our Guides
  • See our list of supported tasks

Installation

To import jiant from source (recommended for researchers):

git clone https://github.com/nyu-mll/jiant.git
cd jiant
pip install -r requirements.txt

# Add the following to your .bash_rc or .bash_profile 
export PYTHONPATH=/path/to/jiant:$PYTHONPATH

If you plan to contribute to jiant, install additional dependencies with pip install -r requirements-dev.txt.

To install jiant from source (alternative for researchers):

git clone https://github.com/nyu-mll/jiant.git
cd jiant
pip install . -e

To install jiant from pip (recommended if you just want to train/use a model):

pip install jiant

We recommended that you install jiant in a virtual environment or a conda environment.

To check jiant was correctly installed, run a simple example.

Quick Introduction

The following example fine-tunes a RoBERTa model on the MRPC dataset.

Python version:

from jiant.proj.simple import runscript as run
import jiant.scripts.download_data.runscript as downloader

EXP_DIR = "/path/to/exp"

# Download the Data
downloader.download_data(["mrpc"], f"{EXP_DIR}/tasks")

# Set up the arguments for the Simple API
args = run.RunConfiguration(
   run_name="simple",
   exp_dir=EXP_DIR,
   data_dir=f"{EXP_DIR}/tasks",
   hf_pretrained_model_name_or_path="roberta-base",
   tasks="mrpc",
   train_batch_size=16,
   num_train_epochs=3
)

# Run!
run.run_simple(args)

Bash version:

EXP_DIR=/path/to/exp

python jiant/scripts/download_data/runscript.py \
    download \
    --tasks mrpc \
    --output_path ${EXP_DIR}/tasks
python jiant/proj/simple/runscript.py \
    run \
    --run_name simple \
    --exp_dir ${EXP_DIR}/ \
    --data_dir ${EXP_DIR}/tasks \
    --hf_pretrained_model_name_or_path roberta-base \
    --tasks mrpc \
    --train_batch_size 16 \
    --num_train_epochs 3

Examples of more complex training workflows are found here.

Contributing

The jiant project’s contributing guidelines can be found here.

Looking for jiant v1.3.2?

jiant v1.3.2 has been moved to jiant-v1-legacy to support ongoing research with the library. jiant v2.x.x is more modular and scalable than jiant v1.3.2 and has been designed to reflect the needs of the current NLP research community. We strongly recommended any new projects use jiant v2.x.x.

jiant 1.x has been used in in several papers. For instructions on how to reproduce papers by jiant authors that refer readers to this site for documentation (including Tenney et al., Wang et al., Bowman et al., Kim et al., Warstadt et al.), refer to the jiant-v1-legacy README.

Citation

If you use jiant ≥ v2.0.0 in academic work, please cite it directly:

@misc{phang2020jiant,
    author = {Jason Phang and Phil Yeres and Jesse Swanson and Haokun Liu and Ian F. Tenney and Phu Mon Htut and Clara Vania and Alex Wang and Samuel R. Bowman},
    title = {\texttt{jiant} 2.0: A software toolkit for research on general-purpose text understanding models},
    howpublished = {\url{http://jiant.info/}},
    year = {2020}
}

If you use jiant ≤ v1.3.2 in academic work, please use the citation found here.

Acknowledgments

  • This work was made possible in part by a donation to NYU from Eric and Wendy Schmidt made by recommendation of the Schmidt Futures program, and by support from Intuit Inc.
  • We gratefully acknowledge the support of NVIDIA Corporation with the donation of a Titan V GPU used at NYU in this work.
  • Developer Jesse Swanson is supported by the Moore-Sloan Data Science Environment as part of the NYU Data Science Services initiative.

License

jiant is released under the MIT License.

评论

登录 后发表评论
暂无评论
GitRead 中文社区
深度解读 · 趋势洞察 · 价值精选

关于

关于我们联系我们编辑准则收录标准赞赏人员

发现

技术趋势新手训练营资源精选实战指南精选专题热门话题GitHub 文档

条款

隐私政策服务条款网站地图
26.9万收录项目
7.6万中文话题
155精选专题
发现技术价值,连接开源智慧
© 2026 GitRead · GitHub 中文社区 本站与 GitHub, Inc. 无隶属关系;GitHub 是 GitHub, Inc. 的商标。