Fastai: A Layered API for Deep Learning

被引:508
|
作者
Howard, Jeremy [1 ,2 ]
Gugger, Sylvain [1 ]
机构
[1] Fastai, San Francisco, CA 94117 USA
[2] Univ San Francisco, Data Sci Inst, San Francisco, CA 94117 USA
关键词
deep learning; data processing pipelines;
D O I
10.3390/info11020108
中图分类号
TP [自动化技术、计算机技术];
学科分类号
0812 ;
摘要
fastai is a deep learning library which provides practitioners with high-level components that can quickly and easily provide state-of-the-art results in standard deep learning domains, and provides researchers with low-level components that can be mixed and matched to build new approaches. It aims to do both things without substantial compromises in ease of use, flexibility, or performance. This is possible thanks to a carefully layered architecture, which expresses common underlying patterns of many deep learning and data processing techniques in terms of decoupled abstractions. These abstractions can be expressed concisely and clearly by leveraging the dynamism of the underlying Python language and the flexibility of the PyTorch library. fastai includes: a new type dispatch system for Python along with a semantic type hierarchy for tensors; a GPU-optimized computer vision library which can be extended in pure Python; an optimizer which refactors out the common functionality of modern optimizers into two basic pieces, allowing optimization algorithms to be implemented in 4-5 lines of code; a novel 2-way callback system that can access any part of the data, model, or optimizer and change it at any point during training; a new data block API; and much more. We used this library to successfully create a complete deep learning course, which we were able to write more quickly than using previous approaches, and the code was more clear. The library is already in wide use in research, industry, and teaching.
引用
收藏
页数:26
相关论文
共 50 条
  • [21] Deep learning-based open API recommendation for Mashup development
    Ye WANG
    Junwu CHEN
    Qiao HUANG
    Xin XIA
    Bo JIANG
    Science China(Information Sciences), 2023, 66 (07) : 94 - 111
  • [22] A Robust Malware Detection System Using Deep Learning on API Calls
    Liu, Yingying
    Wang, Yiwei
    PROCEEDINGS OF 2019 IEEE 3RD INFORMATION TECHNOLOGY, NETWORKING, ELECTRONIC AND AUTOMATION CONTROL CONFERENCE (ITNEC 2019), 2019, : 1456 - 1460
  • [23] Deep learning-based open API recommendation for Mashup development
    Wang, Ye
    Chen, Junwu
    Huang, Qiao
    Xia, Xin
    Jiang, Bo
    SCIENCE CHINA-INFORMATION SCIENCES, 2023, 66 (07)
  • [24] API-MalDetect: Automated malware detection framework for windows based on API calls and deep learning techniques
    Maniriho, Pascal
    Mahmood, Abdun Naser
    Chowdhury, Mohammad Jabed Morshed
    JOURNAL OF NETWORK AND COMPUTER APPLICATIONS, 2023, 218
  • [25] Enhancing RF Sensing with Deep Learning: A Layered Approach
    Zheng, Tianyue
    Chen, Zhe
    Ding, Shuya
    Luo, Jun
    IEEE COMMUNICATIONS MAGAZINE, 2021, 59 (02) : 70 - 76
  • [26] Fuzzing Deep-Learning Libraries via Automated Relational API Inference
    Deng, Yinlin
    Yang, Chenyuan
    Wei, Anjiang
    Zhang, Lingming
    PROCEEDINGS OF THE 30TH ACM JOINT MEETING EUROPEAN SOFTWARE ENGINEERING CONFERENCE AND SYMPOSIUM ON THE FOUNDATIONS OF SOFTWARE ENGINEERING, ESEC/FSE 2022, 2022, : 44 - 56
  • [27] An API Semantics-Aware Malware Detection Method Based on Deep Learning
    Ma, Xin
    Guo, Shize
    Bai, Wei
    Chen, Jun
    Xia, Shiming
    Pan, Zhisong
    SECURITY AND COMMUNICATION NETWORKS, 2019, 2019
  • [28] "More Than Deep Learning": post-processing for API sequence recommendation
    Chen, Chi
    Peng, Xin
    Chen, Bihuan
    Sun, Jun
    Xing, Zhenchang
    Wang, Xin
    Zhao, Wenyun
    EMPIRICAL SOFTWARE ENGINEERING, 2022, 27 (01)
  • [29] DocTer: Documentation-Guided Fuzzing for Testing Deep Learning API Functions
    Xie, Danning
    Li, Yitong
    Kim, Mijung
    Hung Viet Pham
    Tan, Lin
    Zhang, Xiangyu
    Godfrey, Michael W.
    PROCEEDINGS OF THE 31ST ACM SIGSOFT INTERNATIONAL SYMPOSIUM ON SOFTWARE TESTING AND ANALYSIS, ISSTA 2022, 2022, : 176 - 188
  • [30] “More Than Deep Learning”: post-processing for API sequence recommendation
    Chi Chen
    Xin Peng
    Bihuan Chen
    Jun Sun
    Zhenchang Xing
    Xin Wang
    Wenyun Zhao
    Empirical Software Engineering, 2022, 27