Run this model with HF Jobs
Run ESGBERT/GovernanceBERT-governance 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/ESGBERT/GovernanceBERT-governance. 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/ESGBERT/GovernanceBERT-governance 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 ESGBERT/GovernanceBERT-governance with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ESGBERT/GovernanceBERT-governance with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="ESGBERT/GovernanceBERT-governance")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("ESGBERT/GovernanceBERT-governance") model = AutoModelForSequenceClassification.from_pretrained("ESGBERT/GovernanceBERT-governance", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit ·
e9593c8
1
Parent(s): a7d0482
Update README.md
Browse files28 unmodified lines2930313233343528 unmodified linesmodel = AutoModelForSequenceClassification.from_pretrained(model_name)tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, max_len=512)pipe = pipeline("text-classification", model=model, tokenizer=tokenizer, device=0)# See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipelineprint(pipe("An ethical code has been issued to all Group employees."))28 unmodified lines2930313233343528 unmodified linesmodel = AutoModelForSequenceClassification.from_pretrained(model_name)tokenizer = AutoTokenizer.from_pretrained(tokenizer_name, max_len=512)pipe = pipeline("text-classification", model=model, tokenizer=tokenizer) # set device=0 to use GPU# See https://huggingface.co/docs/transformers/main_classes/pipelines#transformers.pipelineprint(pipe("An ethical code has been issued to all Group employees."))
README.md+1-1