Spaces:
Runtime error
Runtime error
mwitiderrick
commited on
Commit
·
0363976
1
Parent(s):
7f9fbda
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,9 @@ import time
|
|
3 |
import gradio as gr
|
4 |
|
5 |
markdownn = '''
|
6 |
-
#
|
7 |
DeepSparse is sparsity-aware inference runtime offering GPU-class performance on CPUs and APIs to integrate ML into your application. DeepSparse provides sparsified pipelines for computer vision and NLP.
|
8 |
-
The pipelines are similar to Hugging Face pipelines but are faster because they have been pruned and quantized. SparseML
|
9 |
```
|
10 |
from deepsparse import Pipeline
|
11 |
pipeline = Pipeline.create(task="ner", model_path="zoo:nlp/token_classification/distilbert-none/pytorch/huggingface/conll2003/pruned80_quant-none-vnni")
|
|
|
3 |
import gradio as gr
|
4 |
|
5 |
markdownn = '''
|
6 |
+
# Named Entity Recognition Pipeline with DeepSparse
|
7 |
DeepSparse is sparsity-aware inference runtime offering GPU-class performance on CPUs and APIs to integrate ML into your application. DeepSparse provides sparsified pipelines for computer vision and NLP.
|
8 |
+
The pipelines are similar to Hugging Face pipelines but are faster because they have been pruned and quantized. SparseML Named Entity Recognition Pipelines integrate with Hugging Face’s Transformers library to enable the sparsification of a large set of transformers models. Here is sample code for a token classification pipeline:
|
9 |
```
|
10 |
from deepsparse import Pipeline
|
11 |
pipeline = Pipeline.create(task="ner", model_path="zoo:nlp/token_classification/distilbert-none/pytorch/huggingface/conll2003/pruned80_quant-none-vnni")
|