shahidash / swift-coreml-transformers

Swift Core ML 3 implementation of BERT for Question answering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Swift Core ML implementation of BERT

This repository contains:

  • a pretrained Google BERT model fine-tuned for Question answering on the SQuAD dataset.
  • Swift implementations of the BERT tokenizer (BasicTokenizer and WordpieceTokenizer) and SQuAD dataset parsing utilities.
  • A demo question answering app.

The pretrained Core ML model was packaged by Apple and is linked from the main ML models page. It was demoed at WWDC 2019 as part of the Core ML 3 launch.

core ml 3

🦄 Demo Time 🔥

demo

Apple demo at WWDC 2019

wwdc demo

full video here

BERT Architecture (wwdc slide)

bert

Notes

We use git-lfs to store large model files and it is required to obtain some of the files the app needs to run. See how to install git-lfson the installation page

About

Swift Core ML 3 implementation of BERT for Question answering


Languages

Language:Swift 100.0%