A table of instruction-tuned models that work well with LoRA on a single
consumer GPU, from a 135M model that trains on a CPU to a 7B that trains
in 4-bit on an 8 GB NVIDIA card. Any Hugging Face causal language model id
can be passed to dragon_train(); these are good starting points.
Value
A data frame with columns id, params, license, gated,
rank, min_vram_gb, load_in_4bit (whether it needs 4-bit loading to
fit min_vram_gb), and notes.
Details
Which size to pick depends on the task. Measured on an 8 GB laptop GPU (see the "Choosing a model size" article on the package website): for answering from documents, writing training questions, or fine-tuning on documents, use the 7B in 4-bit, or the 3B with less memory; models below 3B are wrong more often (untrained, the 0.5B on 16 of 55 test questions, the 7B on 2). For a fixed output format such as JSON fields or labels, the 0.5B and 1.5B reach the same score as larger models in a few minutes of training.
Examples
dragon_presets()
#> id revision
#> 1 HuggingFaceTB/SmolLM2-135M-Instruct 12fd25f77366fa6b3b4b768ec3050bf629380bac
#> 2 HuggingFaceTB/SmolLM2-360M-Instruct a10cc1512eabd3dde888204e902eca88bddb4951
#> 3 Qwen/Qwen2.5-0.5B-Instruct 7ae557604adf67be50417f59c2c2f167def9a775
#> 4 google/gemma-3-1b-it dcc83ea841ab6100d6b47a070329e1ba4cf78752
#> 5 meta-llama/Llama-3.2-1B-Instruct 9213176726f574b556790deb65791e0c5aa438b6
#> 6 Qwen/Qwen2.5-1.5B-Instruct 989aa7980e4cf806f80c7fef2b1adb7bc71aa306
#> 7 HuggingFaceTB/SmolLM2-1.7B-Instruct 31b70e2e869a7173562077fd711b654946d38674
#> 8 Qwen/Qwen2.5-3B-Instruct aa8e72537993ba99e69dfaafa59ed015b17504d1
#> 9 Qwen/Qwen2.5-7B-Instruct a09a35458c702b33eeacc393d103063234e8bc28
#> params license gated rank min_vram_gb load_in_4bit
#> 1 135M Apache 2.0 FALSE 8 2 FALSE
#> 2 360M Apache 2.0 FALSE 8 3 FALSE
#> 3 0.5B Apache 2.0 FALSE 16 3 FALSE
#> 4 1B Gemma TRUE 16 5 FALSE
#> 5 1.2B Llama 3.2 TRUE 16 5 FALSE
#> 6 1.5B Apache 2.0 FALSE 16 7 FALSE
#> 7 1.7B Apache 2.0 FALSE 16 8 FALSE
#> 8 3B Qwen Research FALSE 16 5 TRUE
#> 9 7B Apache 2.0 FALSE 16 8 TRUE
#> notes
#> 1 Fastest. Trains on a CPU in minutes. Used by the package tests.
#> 2 Tiny. For trying the workflow on a laptop.
#> 3 App default. Fixed formats such as JSON: 20 of 20 after 3 minutes of training. Wrong on 16 of 55 document questions.
#> 4 Needs a Hugging Face token.
#> 5 Needs a Hugging Face token.
#> 6 Fixed formats and house style. Wrong on 9 of 55 document questions (the 7B on 2).
#> 7 Largest of the small presets. Turn on gradient checkpointing on 8 GB cards.
#> 8 Documents on a smaller card: declines what the documents do not cover. Trains in 4-bit; research licence.
#> 9 Best for documents: answering, writing training questions, fine-tuning. 4-bit, batch size 1 on an 8 GB NVIDIA card.
