Instructions to use textattack/albert-base-v2-ag-news with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/albert-base-v2-ag-news with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="textattack/albert-base-v2-ag-news")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("textattack/albert-base-v2-ag-news") model = AutoModelForSequenceClassification.from_pretrained("textattack/albert-base-v2-ag-news", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Update config.json
f2a40f1 -
Update special_tokens_map.json
73d1f85 -
Update tokenizer_config.json
9b05776 -
Update spiece.model
f63423c -
Update train_args.json
fb4cb57 -
Update README.md
3cf572a -
Update log.txt
8fe16ff -
Update pytorch_model.bin
10682d4
-
Update config.json
38611fd -
Update special_tokens_map.json
c62b77a -
Update tokenizer_config.json
f3a9cfc -
Update train_args.json
1ee96ea -
Update README.md
e52e9da -
Update spiece.model
a98bd96 -
Update log.txt
e09425d -
Update config.json
8bdc058 -
Update special_tokens_map.json
3992c7f -
Update tokenizer_config.json
76f3b72 -
Update README.md
1cc1fa7 -
Update spiece.model
da581c1 -
Update train_args.json
d9fe6b6 -
Update log.txt
cab4e0a -
Update config.json
06b8a7a -
Update special_tokens_map.json
8af87b1 -
Update spiece.model
c204f2a -
Update tokenizer_config.json
bcdf432 -
Update train_args.json
b0798dd -
Update README.md
5783cfe -
Update log.txt
892af8e -
initial commit
9e2c8e2