Instructions to use DGXAI/gemma-4-e2b-driftcall-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use DGXAI/gemma-4-e2b-driftcall-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("unsloth/gemma-3n-E2B-it") model = PeftModel.from_pretrained(base_model, "DGXAI/gemma-4-e2b-driftcall-lora") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- Unsloth Studio
How to use DGXAI/gemma-4-e2b-driftcall-lora 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 DGXAI/gemma-4-e2b-driftcall-lora 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 DGXAI/gemma-4-e2b-driftcall-lora to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for DGXAI/gemma-4-e2b-driftcall-lora to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="DGXAI/gemma-4-e2b-driftcall-lora", max_seq_length=2048, )
File size: 2,284 Bytes
cd131e2 | 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 | {
"audio_seq_length": 188,
"feature_extractor": {
"crop_size": null,
"data_format": "channels_first",
"default_to_square": false,
"device": null,
"disable_grouping": null,
"dither": 0.0,
"do_center_crop": null,
"do_convert_rgb": null,
"do_normalize": false,
"do_rescale": true,
"do_resize": true,
"feature_extractor_type": "Gemma3nAudioFeatureExtractor",
"feature_size": 128,
"fft_length": 1024,
"fft_overdrive": true,
"frame_length": 512,
"hop_length": 160,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "SiglipImageProcessorFast",
"image_seq_length": 256,
"image_std": [
0.5,
0.5,
0.5
],
"input_data_format": null,
"input_scale_factor": 1.0,
"max_frequency": 7600.0,
"mel_floor": 1e-05,
"min_frequency": 125.0,
"padding_side": "left",
"padding_value": 0.0,
"per_bin_mean": null,
"per_bin_stddev": null,
"preemphasis": 0.97,
"preemphasis_htk_flavor": true,
"resample": 2,
"rescale_factor": 0.00392156862745098,
"return_attention_mask": true,
"return_tensors": null,
"sampling_rate": 16000,
"size": {
"height": 768,
"width": 768
}
},
"image_processor": {
"data_format": "channels_first",
"default_to_square": false,
"dither": 0.0,
"do_convert_rgb": null,
"do_normalize": false,
"do_rescale": true,
"do_resize": true,
"feature_size": 128,
"fft_length": 1024,
"fft_overdrive": true,
"frame_length": 512,
"hop_length": 160,
"image_mean": [
0.5,
0.5,
0.5
],
"image_processor_type": "SiglipImageProcessor",
"image_seq_length": 256,
"image_std": [
0.5,
0.5,
0.5
],
"input_scale_factor": 1.0,
"max_frequency": 7600.0,
"mel_floor": 1e-05,
"min_frequency": 125.0,
"padding_side": "left",
"padding_value": 0.0,
"preemphasis": 0.97,
"preemphasis_htk_flavor": true,
"resample": 2,
"rescale_factor": 0.00392156862745098,
"return_attention_mask": true,
"sampling_rate": 16000,
"size": {
"height": 768,
"width": 768
}
},
"image_seq_length": 256,
"processor_class": "Gemma3nProcessor"
}
|