Run this model with HF Jobs
Run ahmeshaf/ecb_tagger_seq2seq 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/ahmeshaf/ecb_tagger_seq2seq. 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/ahmeshaf/ecb_tagger_seq2seq 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 ahmeshaf/ecb_tagger_seq2seq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ahmeshaf/ecb_tagger_seq2seq with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("ahmeshaf/ecb_tagger_seq2seq") model = AutoModelForSeq2SeqLM.from_pretrained("ahmeshaf/ecb_tagger_seq2seq", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files1234---license: apache-2.0---A seq2seq event triggers and entities tagger trained on the dataset: `ahmeshaf/ecb_plus_ed`1234567891011121314151617181920212223242526272829303132---license: apache-2.0---A seq2seq event triggers and entities tagger trained on the dataset: `ahmeshaf/ecb_plus_ed`## UsageInput:```shelltriggers: I like this model and hate this sentence```Output:```shelllike | hate```- Python```pythonmodel = T5ForConditionalGeneration.from_pretrained(model_name)tokenizer = T5Tokenizer.from_pretrained(model_name)generation_config = GenerationConfig.from_pretrained(model_name)tokenized_inputs = tokenizer(["triggers: I like this model and hate this sentence ."], return_tensors="pt")outputs = model.generate(**tokenized_inputs, generation_config=generation_config)print(outputs)\# ["like | hate"]```
README.md+29-1