Instructions to use bogerm/gemma-2-2B-it-thinking-function_calling-V0 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use bogerm/gemma-2-2B-it-thinking-function_calling-V0 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("bogerm/gemma-2-2B-it-thinking-function_calling-V0", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download trainer_state.json from bogerm/gemma-2-2B-it-thinking-function_calling-V0: direct link, hf CLI and curl.
- Browser
- Download file 2.96 kB
-
https://huggingface.co/bogerm/gemma-2-2B-it-thinking-function_calling-V0/resolve/main/trainer_state.json
- Command line
-
hf download hf://bogerm/gemma-2-2B-it-thinking-function_calling-V0/trainer_state.json
-
curl -L -o trainer_state.json https://huggingface.co/bogerm/gemma-2-2B-it-thinking-function_calling-V0/resolve/main/trainer_state.json
2.96 kB
| { | |
| "best_global_step": null, | |
| "best_metric": null, | |
| "best_model_checkpoint": null, | |
| "epoch": 1.0, | |
| "eval_steps": 500, | |
| "global_step": 22, | |
| "is_hyper_param_search": false, | |
| "is_local_process_zero": true, | |
| "is_world_process_zero": true, | |
| "log_history": [ | |
| { | |
| "entropy": 1.3483932316303253, | |
| "epoch": 0.22727272727272727, | |
| "grad_norm": 1.9784183502197266, | |
| "learning_rate": 9.206267664155907e-05, | |
| "loss": 1.711641502380371, | |
| "mean_token_accuracy": 0.6951227873563767, | |
| "num_tokens": 22039.0, | |
| "step": 5 | |
| }, | |
| { | |
| "entropy": 1.1287674576044082, | |
| "epoch": 0.45454545454545453, | |
| "grad_norm": 1.553600549697876, | |
| "learning_rate": 6.408662784207149e-05, | |
| "loss": 1.0406432151794434, | |
| "mean_token_accuracy": 0.793542155623436, | |
| "num_tokens": 43194.0, | |
| "step": 10 | |
| }, | |
| { | |
| "entropy": 0.7328443825244904, | |
| "epoch": 0.6818181818181818, | |
| "grad_norm": 1.2893059253692627, | |
| "learning_rate": 2.9229249349905684e-05, | |
| "loss": 0.8174036026000977, | |
| "mean_token_accuracy": 0.8404639691114426, | |
| "num_tokens": 64558.0, | |
| "step": 15 | |
| }, | |
| { | |
| "entropy": 0.6906132847070694, | |
| "epoch": 0.9090909090909091, | |
| "grad_norm": 0.9961944818496704, | |
| "learning_rate": 4.5184002322740785e-06, | |
| "loss": 0.7374939441680908, | |
| "mean_token_accuracy": 0.851764053106308, | |
| "num_tokens": 87822.0, | |
| "step": 20 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_entropy": 0.7071148753166199, | |
| "eval_loss": 0.7566695809364319, | |
| "eval_mean_token_accuracy": 0.844323476155599, | |
| "eval_num_tokens": 96781.0, | |
| "eval_runtime": 15.2668, | |
| "eval_samples_per_second": 0.59, | |
| "eval_steps_per_second": 0.59, | |
| "step": 22 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "step": 22, | |
| "total_flos": 1187668137881088.0, | |
| "train_loss": 1.0440469004891135, | |
| "train_runtime": 523.1607, | |
| "train_samples_per_second": 0.168, | |
| "train_steps_per_second": 0.042 | |
| }, | |
| { | |
| "epoch": 1.0, | |
| "eval_entropy": 0.7071148753166199, | |
| "eval_loss": 0.7566695809364319, | |
| "eval_mean_token_accuracy": 0.844323476155599, | |
| "eval_num_tokens": 96781.0, | |
| "eval_runtime": 14.9699, | |
| "eval_samples_per_second": 0.601, | |
| "eval_steps_per_second": 0.601, | |
| "step": 22 | |
| } | |
| ], | |
| "logging_steps": 5, | |
| "max_steps": 22, | |
| "num_input_tokens_seen": 0, | |
| "num_train_epochs": 1, | |
| "save_steps": 500, | |
| "stateful_callbacks": { | |
| "TrainerControl": { | |
| "args": { | |
| "should_epoch_stop": false, | |
| "should_evaluate": false, | |
| "should_log": false, | |
| "should_save": false, | |
| "should_training_stop": false | |
| }, | |
| "attributes": {} | |
| } | |
| }, | |
| "total_flos": 1187668137881088.0, | |
| "train_batch_size": 1, | |
| "trial_name": null, | |
| "trial_params": null | |
| } | |