Instructions to use josephmayo/gemma-4-E4B-it-coding-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use josephmayo/gemma-4-E4B-it-coding-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/gemma-4-E4B-it") model = PeftModel.from_pretrained(base_model, "josephmayo/gemma-4-E4B-it-coding-lora") - Notebooks
- Google Colab
- Kaggle
File size: 4,110 Bytes
e23d619 | 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 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 | {
"before_pass": 5,
"after_pass": 7,
"total": 8,
"rows": [
{
"phase": "before",
"task_id": "HumanEval/0",
"entry_point": "has_close_elements",
"passed": false,
"error": "Traceback (most recent call last):\n File \"C:\\Users\\USER\\AppData\\Local\\Temp\\tmp6oy5omdq.py\", line 8, in <module>\n exec(code, ns)\n ~~~~^^^^^^^^^^\n File \"<string>\", line 17\n if sorted_numbers[i+1] - sorted_numbers[i\n ^\nSyntaxError: '[' was never closed\n",
"chars": 526
},
{
"phase": "after",
"task_id": "HumanEval/0",
"entry_point": "has_close_elements",
"passed": true,
"error": null,
"chars": 495
},
{
"phase": "before",
"task_id": "HumanEval/1",
"entry_point": "separate_paren_groups",
"passed": false,
"error": "Traceback (most recent call last):\n File \"C:\\Users\\USER\\AppData\\Local\\Temp\\tmpbgx0dlv4.py\", line 10, in <module>\n ns[\"check\"](ns[entry_point])\n ~~~~~~~~~~~^^^^^^^^^^^^^^^^^\n File \"<string>\", line 10, in check\nAssertionError\n",
"chars": 745
},
{
"phase": "after",
"task_id": "HumanEval/1",
"entry_point": "separate_paren_groups",
"passed": true,
"error": null,
"chars": 455
},
{
"phase": "before",
"task_id": "HumanEval/2",
"entry_point": "truncate_number",
"passed": true,
"error": null,
"chars": 360
},
{
"phase": "after",
"task_id": "HumanEval/2",
"entry_point": "truncate_number",
"passed": true,
"error": null,
"chars": 363
},
{
"phase": "before",
"task_id": "HumanEval/3",
"entry_point": "below_zero",
"passed": true,
"error": null,
"chars": 590
},
{
"phase": "after",
"task_id": "HumanEval/3",
"entry_point": "below_zero",
"passed": true,
"error": null,
"chars": 590
},
{
"phase": "before",
"task_id": "HumanEval/4",
"entry_point": "mean_absolute_deviation",
"passed": true,
"error": null,
"chars": 632
},
{
"phase": "after",
"task_id": "HumanEval/4",
"entry_point": "mean_absolute_deviation",
"passed": true,
"error": null,
"chars": 530
},
{
"phase": "before",
"task_id": "HumanEval/5",
"entry_point": "intersperse",
"passed": true,
"error": null,
"chars": 486
},
{
"phase": "after",
"task_id": "HumanEval/5",
"entry_point": "intersperse",
"passed": true,
"error": null,
"chars": 455
},
{
"phase": "before",
"task_id": "HumanEval/6",
"entry_point": "parse_nested_parens",
"passed": false,
"error": "Traceback (most recent call last):\n File \"C:\\Users\\USER\\AppData\\Local\\Temp\\tmpx0bb66c4.py\", line 8, in <module>\n exec(code, ns)\n ~~~~^^^^^^^^^^\n File \"<string>\", line 21\n max_depth = max(max_depth\n ^\nSyntaxError: '(' was never closed\n",
"chars": 692
},
{
"phase": "after",
"task_id": "HumanEval/6",
"entry_point": "parse_nested_parens",
"passed": false,
"error": "Traceback (most recent call last):\n File \"C:\\Users\\USER\\AppData\\Local\\Temp\\tmpn7um62g2.py\", line 8, in <module>\n exec(code, ns)\n ~~~~^^^^^^^^^^\n File \"<string>\", line 20\n max_depth = max(max_depth\n ^\nSyntaxError: '(' was never closed\n",
"chars": 691
},
{
"phase": "before",
"task_id": "HumanEval/7",
"entry_point": "filter_by_substring",
"passed": true,
"error": null,
"chars": 379
},
{
"phase": "after",
"task_id": "HumanEval/7",
"entry_point": "filter_by_substring",
"passed": true,
"error": null,
"chars": 379
}
]
} |