Instructions to use VQA-DeepLearning/gemma_2_lora_E2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use VQA-DeepLearning/gemma_2_lora_E2b with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("VQA-DeepLearning/gemma_2_lora_E2b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use VQA-DeepLearning/gemma_2_lora_E2b with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for VQA-DeepLearning/gemma_2_lora_E2b to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for VQA-DeepLearning/gemma_2_lora_E2b to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for VQA-DeepLearning/gemma_2_lora_E2b to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="VQA-DeepLearning/gemma_2_lora_E2b", max_seq_length=2048, )
File size: 2,854 Bytes
e4be430 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | {
"best_global_step": null,
"best_metric": null,
"best_model_checkpoint": null,
"epoch": 0.22308979364194087,
"eval_steps": 100,
"global_step": 100,
"is_hyper_param_search": false,
"is_local_process_zero": true,
"is_world_process_zero": true,
"log_history": [
{
"epoch": 0.022308979364194088,
"grad_norm": 3.6059792041778564,
"learning_rate": 0.00019999016517595753,
"loss": 3.6749305725097656,
"step": 10
},
{
"epoch": 0.044617958728388175,
"grad_norm": 1.686761498451233,
"learning_rate": 0.00019987954562051725,
"loss": 0.9972598075866699,
"step": 20
},
{
"epoch": 0.06692693809258227,
"grad_norm": 1.0181570053100586,
"learning_rate": 0.00019964614941176195,
"loss": 0.7280679225921631,
"step": 30
},
{
"epoch": 0.08923591745677635,
"grad_norm": 0.9052721261978149,
"learning_rate": 0.00019929026345133122,
"loss": 0.6308993339538574,
"step": 40
},
{
"epoch": 0.11154489682097044,
"grad_norm": 0.8318365812301636,
"learning_rate": 0.00019881232521105089,
"loss": 0.6105688571929931,
"step": 50
},
{
"epoch": 0.13385387618516453,
"grad_norm": 0.9255080223083496,
"learning_rate": 0.00019821292219517192,
"loss": 0.5463937282562256,
"step": 60
},
{
"epoch": 0.1561628555493586,
"grad_norm": 0.8712772727012634,
"learning_rate": 0.00019749279121818235,
"loss": 0.513142728805542,
"step": 70
},
{
"epoch": 0.1784718349135527,
"grad_norm": 0.6806803941726685,
"learning_rate": 0.00019665281749908033,
"loss": 0.45452089309692384,
"step": 80
},
{
"epoch": 0.2007808142777468,
"grad_norm": 0.8569662570953369,
"learning_rate": 0.0001956940335732209,
"loss": 0.4099240303039551,
"step": 90
},
{
"epoch": 0.22308979364194087,
"grad_norm": 0.5690306425094604,
"learning_rate": 0.00019461761802307495,
"loss": 0.4181380748748779,
"step": 100
},
{
"epoch": 0.22308979364194087,
"eval_loss": 7.142496585845947,
"eval_runtime": 196.0856,
"eval_samples_per_second": 2.3,
"eval_steps_per_second": 2.3,
"step": 100
}
],
"logging_steps": 10,
"max_steps": 898,
"num_input_tokens_seen": 0,
"num_train_epochs": 2,
"save_steps": 50,
"stateful_callbacks": {
"TrainerControl": {
"args": {
"should_epoch_stop": false,
"should_evaluate": false,
"should_log": false,
"should_save": true,
"should_training_stop": false
},
"attributes": {}
}
},
"total_flos": 1609636050452544.0,
"train_batch_size": 1,
"trial_name": null,
"trial_params": null
}
|