Text Classification
PyTorch
Transformers
English
Transformers
bert
nlp
argilla
text-embeddings-inference
Run this model with HF Jobs
Run plaguss/test_model 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/plaguss/test_model. 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/plaguss/test_model 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 plaguss/test_model with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use plaguss/test_model with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="plaguss/test_model")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("plaguss/test_model") model = AutoModelForSequenceClassification.from_pretrained("plaguss/test_model", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload README.md with huggingface_hub
Browse files1234567895 unmodified lines151617181920211 unmodified line2324252627282930313233343536373839404142434411 unmodified lines565758596061626364656667686964 unmodified lines134135136137138139140---library_name: Transformerstags:- text-classification- transformers- argilla---<!-- This model card has been generated automatically according to the information the `ArgillaTrainer` had access to. You5 unmodified lines<!-- Provide a quick summary of what the model is/does. -->## Model training1 unmodified line```python# Load the dataset:dataset = FeedbackDataset.from_argilla("...")# Create the training task:task = TrainingTask.for_text_classification(text=dataset.field_by_name("text"), label=dataset.question_by_name("question-3"))# Create the ArgillaTrainer:trainer = ArgillaTrainer(dataset=dataset,task=task,framework="transformers",model="bert-base-cased",)trainer.update_config({"logging_steps": 1,"num_train_epochs": 1})trainer.train(output_dir="None")11 unmodified lines<!-- Provide a longer summary of what this model is. -->- **Developed by:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** [More Information Needed]- **Language(s) (NLP):** [More Information Needed]- **License:** [More Information Needed]- **Finetuned from model [optional]:** [More Information Needed]<!--## Uses64 unmodified lines### Framework Versions- Python: 3.10.7- Argilla: 1.17.0-dev<!--## Citation [optional]12345678910111213145 unmodified lines202122232425261 unmodified line282930313233343536373839404142434445464748495011 unmodified lines626364656667686970717273747576777879808164 unmodified lines146147148149150151152---language:- enlicense: apache-2.0library_name: Transformerstags:- nlp- text-classification- argilla- transformersdataset_name: argilla/emotion---<!-- This model card has been generated automatically according to the information the `ArgillaTrainer` had access to. You5 unmodified lines<!-- Provide a quick summary of what the model is/does. -->This is a sample model finetuned from prajjwal1/bert-tiny.## Model training1 unmodified line```python# Load the dataset:dataset = FeedbackDataset.from_huggingface("argilla/emotion")# Create the training task:task = TrainingTask.for_text_classification(text=dataset.field_by_name("text"), label=dataset.question_by_name("label"))# Create the ArgillaTrainer:trainer = ArgillaTrainer(dataset=dataset,task=task,framework="transformers",model="prajjwal1/bert-tiny",)trainer.update_config({"logging_steps": 1,"num_train_epochs": 1,"output_dir": "tmp"})trainer.train(output_dir="None")11 unmodified lines<!-- Provide a longer summary of what this model is. -->Model trained with `ArgillaTrainer` for demo purposes- **Developed by:** [More Information Needed]- **Shared by [optional]:** [More Information Needed]- **Model type:** Finetuned version of [prajjwal1/bert-tiny](https://huggingface.co/prajjwal1/bert-tiny) for demo purposes- **Language(s) (NLP):** ['en']- **License:** apache-2.0- **Finetuned from model [optional]:** prajjwal1/bert-tiny### Model Sources [optional]<!-- Provide the basic links for the model. -->- **Repository:** N/A<!--## Uses64 unmodified lines### Framework Versions- Python: 3.10.7- Argilla: 1.19.0-dev<!--## Citation [optional]
README.md+24-12