Add Neuron-optimized files for google-bert/bert-base-chinese
Browse files🤖 Neuron Export Bot: Adding AWS Neuron-optimized model files.
Original model: [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese)
Task: fill-mask
Generated by: [badaoui](https://huggingface.co/badaoui)
Generated using: [Optimum Neuron Compiler Space](https://huggingface.co/spaces/optimum/neuron-export)
These files have been pre-compiled for AWS Neuron devices (Inferentia/Trainium) and should provide improved inference performance.
README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
tags:
|
| 3 |
+
- neuron
|
| 4 |
+
- optimized
|
| 5 |
+
- aws-neuron
|
| 6 |
+
- fill-mask
|
| 7 |
+
base_model: google-bert/bert-base-chinese
|
| 8 |
+
---
|
| 9 |
+
|
| 10 |
+
# Neuron-Optimized google-bert/bert-base-chinese
|
| 11 |
+
|
| 12 |
+
This repository contains AWS Neuron-optimized files for [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese).
|
| 13 |
+
|
| 14 |
+
## Model Details
|
| 15 |
+
|
| 16 |
+
- **Base Model**: [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese)
|
| 17 |
+
- **Task**: fill-mask
|
| 18 |
+
- **Optimization**: AWS Neuron compilation
|
| 19 |
+
- **Generated by**: [badaoui](https://huggingface.co/badaoui)
|
| 20 |
+
- **Generated using**: [Optimum Neuron Compiler Space](https://huggingface.co/spaces/optimum/neuron-export)
|
| 21 |
+
|
| 22 |
+
## Usage
|
| 23 |
+
|
| 24 |
+
This model has been optimized for AWS Neuron devices (Inferentia/Trainium). To use it:
|
| 25 |
+
|
| 26 |
+
```python
|
| 27 |
+
from optimum.neuron import NeuronModelForMaskedLM
|
| 28 |
+
|
| 29 |
+
model = NeuronModelForMaskedLM.from_pretrained("badaoui/google-bert-bert-base-chinese-neuron")
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
## Performance
|
| 33 |
+
|
| 34 |
+
These files are pre-compiled for AWS Neuron devices and should provide improved inference performance compared to the original model when deployed on Inferentia or Trainium instances.
|
| 35 |
+
|
| 36 |
+
## Original Model
|
| 37 |
+
|
| 38 |
+
For the original model, training details, and more information, please visit: [google-bert/bert-base-chinese](https://huggingface.co/google-bert/bert-base-chinese)
|