Instructions to use optimum-internal-testing/tiny_random_bert_neuronx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use optimum-internal-testing/tiny_random_bert_neuronx with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="optimum-internal-testing/tiny_random_bert_neuronx")# Load model directly from transformers import AutoTokenizer, AutoModel tokenizer = AutoTokenizer.from_pretrained("optimum-internal-testing/tiny_random_bert_neuronx") model = AutoModel.from_pretrained("optimum-internal-testing/tiny_random_bert_neuronx", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload config.json with huggingface_hub
Browse files- config.json +0 -2
config.json
CHANGED
|
@@ -18,8 +18,6 @@
|
|
| 18 |
"auto_cast_type": null,
|
| 19 |
"compiler_type": "neuronx-cc",
|
| 20 |
"compiler_version": "2.22.12471.0+b4a00d10",
|
| 21 |
-
"disable_fallback": false,
|
| 22 |
-
"disable_fast_relayout": false,
|
| 23 |
"dynamic_batch_size": false,
|
| 24 |
"float_dtype": "fp32",
|
| 25 |
"inline_weights_to_neff": true,
|
|
|
|
| 18 |
"auto_cast_type": null,
|
| 19 |
"compiler_type": "neuronx-cc",
|
| 20 |
"compiler_version": "2.22.12471.0+b4a00d10",
|
|
|
|
|
|
|
| 21 |
"dynamic_batch_size": false,
|
| 22 |
"float_dtype": "fp32",
|
| 23 |
"inline_weights_to_neff": true,
|