A pretrained model has already learned from a large corpus, so you can reuse it for a task instead of starting training from scratch. Hugging Face Model Hub provides thousands of open models, including JAX-compatible options for language and image generation. section 11.3
For language-model tasks, begin with prompting. If the results are not good enough, adapt the existing model with fine-tuning rather than paying the much higher cost of pretraining a new one. section 11.3.2
Common adaptation choices include:
- Transfer learning updates all or selected network layers. section 11.3.2
- Low-rank adaptation adds a small delta file to the original weights. section 11.3.2
- Reinforcement learning from human feedback can further tune model behavior. section 11.3.2
Model choices
Examples include Llama and Gemma language models, GPT-J and GPT-Neo, BERT variants such as FinBERT and BioBERT, T5-family models, PEGASUS, and DALL·E Mini for image generation. section 11.3
pip install -q git+https://github.com/huggingface/transformers.git
Install the Hugging Face Transformers development version before exploring compatible pretrained models. section 11.3




















