mlabonne / Gemmalpaca-2B

huggingface.co
Total runs: 58
24-hour runs: 0
7-day runs: -11
30-day runs: -26
Model's Last Updated: Bước đều 04 2024
text-generation

Introduction of Gemmalpaca-2B

Model Details of Gemmalpaca-2B

image/webp

Gemmalpaca-2B

This is gemma-2b model supervised fine-tuned on the vicgalle/alpaca-gpt4 dataset. It outperforms gemma-2b-it, Google's chat version, on Nous' benchmark suite.

It's mostly a test to see how fine-tuning works with Gemma models on a well-known dataset. It turned out better than expected. :)

🔍 Applications

This model has a context length of 8k. I recommend using it with the Alpaca chat template and NOT the Gemma Instruct template (works perfectly with LM Studio). You also want to add </s> as a stop token.

⚡ Quantized models
🏆 Evaluation
Nous

Gemmalpaca-2B outperforms gemma-2b and gemma-2b-it on Nous' benchmark suite (evaluation performed using LLM AutoEval ). See the entire leaderboard here .

Model Average AGIEval GPT4All TruthfulQA Bigbench
mlabonne/Gemmalpaca-2B 📄 38.39 24.48 51.22 47.02 30.85
google/gemma-2b-it 📄 36.1 23.76 43.6 47.64 29.41
google/gemma-2b 📄 34.26 22.7 43.35 39.96 31.03
Open LLM Leaderboard

Detailed results can be found here

Metric Value
Avg. 45.65
AI2 Reasoning Challenge (25-Shot) 48.72
HellaSwag (10-Shot) 71.36
MMLU (5-Shot) 36.30
TruthfulQA (0-shot) 41.24
Winogrande (5-shot) 65.59
GSM8k (5-shot) 10.69
🧩 Configuration

It was trained using Axolotl with the following configuration.

base_model: alpindale/gemma-2b
model_type: GemmaForCausalLM
tokenizer_type: GemmaTokenizer

load_in_8bit: false
load_in_4bit: true
strict: false

datasets:
  - path: vicgalle/alpaca-gpt4
    type: alpaca

dataset_prepared_path:
val_set_size: 0.01
output_dir: ./out

sequence_len: 2048
sample_packing: true
pad_to_sequence_len: true

adapter: qlora
lora_model_dir:
lora_r: 32
lora_alpha: 64
lora_dropout: 0.05
lora_target_linear: true

wandb_project: axolotl
wandb_entity:
wandb_watch:
wandb_name:
wandb_log_model:

gradient_accumulation_steps: 4
micro_batch_size: 2
num_epochs: 3
optimizer: adamw_bnb_8bit
lr_scheduler: cosine
learning_rate: 0.0002

train_on_inputs: false
group_by_length: false
bf16: auto
fp16:
tf32: false

gradient_checkpointing: true
early_stopping_patience:
resume_from_checkpoint:
local_rank:
logging_steps: 1
xformers_attention:
flash_attention:

warmup_steps: 10
evals_per_epoch: 4
eval_table_size:
eval_table_max_new_tokens: 128
saves_per_epoch: 1
debug:
deepspeed:
weight_decay: 0.1
fsdp:
fsdp_config:
special_tokens:
  bos_token: <s>
  eos_token: </s>
  unk_token: <unk>

Built with Axolotl

Runs of mlabonne Gemmalpaca-2B on huggingface.co

58
Total runs
0
24-hour runs
-2
3-day runs
-11
7-day runs
-26
30-day runs

More Information About Gemmalpaca-2B huggingface.co Model

More Gemmalpaca-2B license Visit here:

https://choosealicense.com/licenses/gemma-terms-of-use

Gemmalpaca-2B huggingface.co

Gemmalpaca-2B huggingface.co is an AI model on huggingface.co that provides Gemmalpaca-2B's model effect (), which can be used instantly with this mlabonne Gemmalpaca-2B model. huggingface.co supports a free trial of the Gemmalpaca-2B model, and also provides paid use of the Gemmalpaca-2B. Support call Gemmalpaca-2B model through api, including Node.js, Python, http.

Gemmalpaca-2B huggingface.co Url

https://huggingface.co/mlabonne/Gemmalpaca-2B

mlabonne Gemmalpaca-2B online free

Gemmalpaca-2B huggingface.co is an online trial and call api platform, which integrates Gemmalpaca-2B's modeling effects, including api services, and provides a free online trial of Gemmalpaca-2B, you can try Gemmalpaca-2B online for free by clicking the link below.

mlabonne Gemmalpaca-2B online free url in huggingface.co:

https://huggingface.co/mlabonne/Gemmalpaca-2B

Gemmalpaca-2B install

Gemmalpaca-2B is an open source model from GitHub that offers a free installation service, and any user can find Gemmalpaca-2B on GitHub to install. At the same time, huggingface.co provides the effect of Gemmalpaca-2B install, users can directly use Gemmalpaca-2B installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Gemmalpaca-2B install url in huggingface.co:

https://huggingface.co/mlabonne/Gemmalpaca-2B

Url of Gemmalpaca-2B

Gemmalpaca-2B huggingface.co Url

Provider of Gemmalpaca-2B huggingface.co

mlabonne
ORGANIZATIONS

Other API from mlabonne

huggingface.co

Total runs: 204
Run Growth: -53
Growth Rate: -25.98%
Updated:Tháng Một 07 2025
huggingface.co

Total runs: 175
Run Growth: 85
Growth Rate: 48.57%
Updated:Bước đều 04 2024
huggingface.co

Total runs: 156
Run Growth: -18
Growth Rate: -11.54%
Updated:Bước đều 04 2024
huggingface.co

Total runs: 132
Run Growth: -41
Growth Rate: -32.03%
Updated:Bước đều 04 2024
huggingface.co

Total runs: 99
Run Growth: -34
Growth Rate: -34.34%
Updated:Bước đều 04 2024
huggingface.co

Total runs: 62
Run Growth: -9
Growth Rate: -14.52%
Updated:Bước đều 04 2024
huggingface.co

Total runs: 51
Run Growth: -28
Growth Rate: -54.90%
Updated:Bước đều 04 2024
huggingface.co

Total runs: 43
Run Growth: 0
Growth Rate: 0.00%
Updated:Tháng Mười 06 2024