Run this model with HF Jobs
Run textattack/albert-base-v2-rotten_tomatoes on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/textattack/albert-base-v2-rotten_tomatoes. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/textattack/albert-base-v2-rotten_tomatoes on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use textattack/albert-base-v2-rotten_tomatoes with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use textattack/albert-base-v2-rotten_tomatoes with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="textattack/albert-base-v2-rotten_tomatoes")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("textattack/albert-base-v2-rotten_tomatoes") model = AutoModelForMaskedLM.from_pretrained("textattack/albert-base-v2-rotten_tomatoes", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update log.txt
Browse files12345678910111213141516171819202122232425262728293031Writing logs to /p/qdata/jm8wx/research/text_attacks/textattack/outputs/training/albert-base-v2-rotten_tomatoes-2020-06-25-00:42/log.txt.Loading [94mnlp[0m dataset [94mrotten_tomatoes[0m, split [94mtrain[0m.Loading [94mnlp[0m dataset [94mrotten_tomatoes[0m, split [94mvalidation[0m.Loaded dataset. Found: 2 labels: ([0, 1])Loading transformers AutoModelForSequenceClassification: albert-base-v2Tokenizing training data. (len: 8530)Tokenizing eval data (len: 1066)Loaded data and tokenized in 5.994918584823608sTraining model across 4 GPUs***** Running training ***** Num examples = 8530 Batch size = 128 Max sequence length = 128 Num steps = 660 Num epochs = 10 Learning rate = 2e-05Eval accuracy: 81.98874296435272%Best acc found. Saved model to /p/qdata/jm8wx/research/text_attacks/textattack/outputs/training/albert-base-v2-rotten_tomatoes-2020-06-25-00:42/.Eval accuracy: 88.55534709193246%Best acc found. Saved model to /p/qdata/jm8wx/research/text_attacks/textattack/outputs/training/albert-base-v2-rotten_tomatoes-2020-06-25-00:42/.Eval accuracy: 86.86679174484053%Eval accuracy: 86.67917448405254%Eval accuracy: 86.58536585365853%Eval accuracy: 86.02251407129457%Eval accuracy: 86.02251407129457%Eval accuracy: 86.49155722326454%Eval accuracy: 85.74108818011257%Eval accuracy: 85.92870544090057%Saved tokenizer <textattack.models.tokenizers.auto_tokenizer.AutoTokenizer object at 0x7fb7daaf89d0> to /p/qdata/jm8wx/research/text_attacks/textattack/outputs/training/albert-base-v2-rotten_tomatoes-2020-06-25-00:42/.Wrote README to /p/qdata/jm8wx/research/text_attacks/textattack/outputs/training/albert-base-v2-rotten_tomatoes-2020-06-25-00:42/README.md.Wrote training args to /p/qdata/jm8wx/research/text_attacks/textattack/outputs/training/albert-base-v2-rotten_tomatoes-2020-06-25-00:42/train_args.json.log.txtAdded+31