Run this model with HF Jobs
Run moussaKam/barthez 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/moussaKam/barthez. 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/moussaKam/barthez 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 moussaKam/barthez with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use moussaKam/barthez with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="moussaKam/barthez")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForSeq2SeqLM tokenizer = AutoTokenizer.from_pretrained("moussaKam/barthez") model = AutoModelForSeq2SeqLM.from_pretrained("moussaKam/barthez", device_map="auto") - Inference
- Notebooks
- Google Colab
- Kaggle
Adds missing tokenizer configuration file
This repository is missing the tokenizer configuration file, and is instead relying on some attributes set within
the transformers library directly in order to correctly tokenize inputs.
In order to ensure repositories don't depend on internal configuration changes, we're removing these attribute maps
in transformers#29112.
In doing so, we see that the following attributes are currently missing from the configuration and would be
ill-configured without this PR:
{'model_max_length': 1024}
This PR aims to add these attributes and their values to the tokenizer config file.
This will proceed to make this repository more robust by ensuring that:
- the repository does not depend on intra-library code
- clones of this repository continue working as expected even without the correct repository name
- other libraries that would like to leverage this repository do not depend on code within the transformers library
Thanks π€