Instructions to use roberthsu2003/save_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use roberthsu2003/save_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="roberthsu2003/save_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("roberthsu2003/save_model") model = AutoModelForSequenceClassification.from_pretrained("roberthsu2003/save_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload BertForSequenceClassification
Browse filesFiles changed (2)
- config.json+2-2
- model.safetensors+1-1
12234519 unmodified lines2526272828293031{ "_name_or_path": "./saved_model", "_name_or_path": "google-bert/bert-base-chinese", "architectures": [ "BertForSequenceClassification" ],19 unmodified lines "position_embedding_type": "absolute", "problem_type": "single_label_classification", "torch_dtype": "float32", "transformers_version": "4.48.2", "transformers_version": "4.48.3", "type_vocab_size": 2, "use_cache": true, "vocab_size": 211281223version https://git-lfs.github.com/spec/v1oid sha256:623e2c5ca88dd074e55190d9787b26395436e4a4315abf507bdd1745088a6308oid sha256:dcc21c997733629baf05282b868c30aa396f98469dd6a6d4b84c330ca1881ef6size 409100240config.json+2-2
model.safetensors+1-1