Add Neuron-optimized files for FacebookAI/roberta-base
Browse files🤖 Neuron Export Bot: Adding AWS Neuron-optimized model files.
Original model: [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base)
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.
Files changed (9)
- .gitattributes+1
- README.mdAdded+38
- config.jsonAdded+53
- merges.txtAdded
- model.neuronAdded+3
- special_tokens_map.jsonAdded+51
- tokenizer.jsonAdded
- tokenizer_config.jsonAdded+58
- vocab.jsonAdded
32 unmodified lines33343532 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -text32 unmodified lines3334353632 unmodified lines*.zip filter=lfs diff=lfs merge=lfs -text*.zst filter=lfs diff=lfs merge=lfs -text*tfevents* filter=lfs diff=lfs merge=lfs -textmodel.neuron filter=lfs diff=lfs merge=lfs -text
1234567891011121314151617181920212223242526272829303132333435363738---tags:- neuron- optimized- aws-neuron- fill-maskbase_model: FacebookAI/roberta-base---
# Neuron-Optimized FacebookAI/roberta-base
This repository contains AWS Neuron-optimized files for [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base).
## Model Details
- **Base Model**: [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base)- **Task**: fill-mask- **Optimization**: AWS Neuron compilation- **Generated by**: [badaoui](https://huggingface.co/badaoui)- **Generated using**: [Optimum Neuron Compiler Space](https://huggingface.co/spaces/optimum/neuron-export)
## Usage
This model has been optimized for AWS Neuron devices (Inferentia/Trainium). To use it:
```pythonfrom optimum.neuron import NeuronModelForMaskedLM
model = NeuronModelForMaskedLM.from_pretrained("badaoui/FacebookAI-roberta-base-neuron")```
## Performance
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.
## Original Model
For the original model, training details, and more information, please visit: [FacebookAI/roberta-base](https://huggingface.co/FacebookAI/roberta-base)1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ "_attn_implementation_autoset": true, "architectures": [ "RobertaForMaskedLM" ], "attention_probs_dropout_prob": 0.1, "bos_token_id": 0, "classifier_dropout": null, "eos_token_id": 2, "hidden_act": "gelu", "hidden_dropout_prob": 0.1, "hidden_size": 768, "initializer_range": 0.02, "intermediate_size": 3072, "layer_norm_eps": 1e-05, "max_position_embeddings": 514, "model_type": "roberta", "neuron": { "auto_cast": null, "auto_cast_type": null, "compiler_type": "neuronx-cc", "compiler_version": "2.19.8089.0+8ab9f450", "disable_fallback": false, "disable_fast_relayout": false, "dynamic_batch_size": false, "inline_weights_to_neff": true, "input_names": [ "input_ids", "attention_mask" ], "model_type": "roberta", "optlevel": "2", "output_attentions": false, "output_hidden_states": false, "output_names": [ "logits" ], "static_batch_size": 1, "static_sequence_length": 128, "task": "fill-mask", "tensor_parallel_size": 1 }, "num_attention_heads": 12, "num_hidden_layers": 12, "pad_token_id": 1, "position_embedding_type": "absolute", "torch_dtype": "float32", "torchscript": true, "transformers_version": "4.51.3", "type_vocab_size": 1, "use_cache": true, "vocab_size": 50265}123version https://git-lfs.github.com/spec/v1oid sha256:6cbf2c55d15dbd26c1c75be9638df97435449069be0966af46886b8cdd4551b8size 412256570123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051{ "bos_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "cls_token": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "eos_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "mask_token": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false }, "pad_token": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "sep_token": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }, "unk_token": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false }}12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758{ "add_prefix_space": false, "added_tokens_decoder": { "0": { "content": "<s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "1": { "content": "<pad>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "2": { "content": "</s>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "3": { "content": "<unk>", "lstrip": false, "normalized": true, "rstrip": false, "single_word": false, "special": true }, "50264": { "content": "<mask>", "lstrip": true, "normalized": false, "rstrip": false, "single_word": false, "special": true } }, "bos_token": "<s>", "clean_up_tokenization_spaces": false, "cls_token": "<s>", "eos_token": "</s>", "errors": "replace", "extra_special_tokens": {}, "mask_token": "<mask>", "model_max_length": 512, "pad_token": "<pad>", "sep_token": "</s>", "tokenizer_class": "RobertaTokenizer", "trim_offsets": true, "unk_token": "<unk>"}.gitattributes+1
README.mdAdded+38
config.jsonAdded+53
merges.txtAdded
model.neuronAdded+3
special_tokens_map.jsonAdded+51
tokenizer.jsonAdded
tokenizer_config.jsonAdded+58
vocab.jsonAdded