swift-coreml-transformers
This repository contains:
For BERT and DistilBERT:
pretrained Google BERT and Hugging Face DistilBERT models fine-tuned for Question answering on the SQuAD dataset.
Swift implementations of the BERT tokenizer (BasicTokenizer and WordpieceTokenizer) and SQuAD dataset parsing utilities.
BasicTokenizer
WordpieceTokenizer
A neat demo question answering app.
For GPT-2 and DistilGPT-2:
a conversion script from PyTorch trained GPT-2 models (see our transformers repo) to CoreML models.
transformers
The GPT-2 generation model itself, including decoding strategies (greedy and TopK are currently implemented) and GPT-2 Byte-pair encoder and decoder.
A neat demo app showcasing on-device text generation.
上一篇:spacy-transformers
下一篇:primus
还没有评论,说两句吧!
热门资源
seetafaceJNI
项目介绍 基于中科院seetaface2进行封装的JAVA...
spark-corenlp
This package wraps Stanford CoreNLP annotators ...
Keras-ResNeXt
Keras ResNeXt Implementation of ResNeXt models...
capsnet-with-caps...
CapsNet with capsule-wise convolution Project ...
shih-styletransfer
shih-styletransfer Code from Style Transfer ...
智能在线
400-630-6780
聆听.建议反馈
E-mail: support@tusaishared.com