Instructions to use thanhhieu995/bert_base_sentiment_float16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TF-Keras
How to use thanhhieu995/bert_base_sentiment_float16 with TF-Keras:
# Note: 'keras<3.x' or 'tf_keras' must be installed (legacy), and from_pretrained_keras was removed in huggingface_hub 1.0. # See https://github.com/keras-team/tf-keras for more details. # !pip install "huggingface_hub<1.0" tf_keras from huggingface_hub import from_pretrained_keras model = from_pretrained_keras("thanhhieu995/bert_base_sentiment_float16") - Notebooks
- Google Colab
- Kaggle
Download config.json from thanhhieu995/bert_base_sentiment_float16: direct link, hf CLI and curl.
- Browser
- Download file 1.08 kB
-
https://huggingface.co/thanhhieu995/bert_base_sentiment_float16/resolve/main/config.json
- Command line
-
hf download hf://thanhhieu995/bert_base_sentiment_float16/config.json
-
curl -L -o config.json https://huggingface.co/thanhhieu995/bert_base_sentiment_float16/resolve/main/config.json
1.08 kB
| { | |
| "_num_labels": 5, | |
| "architectures": [ | |
| "BertForSequenceClassification" | |
| ], | |
| "attention_probs_dropout_prob": 0.1, | |
| "classifier_dropout": null, | |
| "directionality": "bidi", | |
| "finetuning_task": "sentiment-analysis", | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 768, | |
| "id2label": { | |
| "0": "1 star", | |
| "1": "2 stars", | |
| "2": "3 stars", | |
| "3": "4 stars", | |
| "4": "5 stars" | |
| }, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 3072, | |
| "label2id": { | |
| "1 star": 0, | |
| "2 stars": 1, | |
| "3 stars": 2, | |
| "4 stars": 3, | |
| "5 stars": 4 | |
| }, | |
| "layer_norm_eps": 1e-12, | |
| "max_position_embeddings": 512, | |
| "model_type": "bert", | |
| "num_attention_heads": 12, | |
| "num_hidden_layers": 12, | |
| "output_past": true, | |
| "pad_token_id": 0, | |
| "pooler_fc_size": 768, | |
| "pooler_num_attention_heads": 12, | |
| "pooler_num_fc_layers": 3, | |
| "pooler_size_per_head": 128, | |
| "pooler_type": "first_token_transform", | |
| "position_embedding_type": "absolute", | |
| "transformers_version": "4.57.0", | |
| "type_vocab_size": 2, | |
| "use_cache": true, | |
| "vocab_size": 105879 | |
| } | |