File size: 686 Bytes
81e51f1
 
cc498f4
 
 
2a6f17e
2fb3bc7
 
81e51f1
 
cc498f4
81e51f1
cc498f4
15b7dc1
 
 
 
 
 
 
 
 
 
 
2fb3bc7
15b7dc1
 
 
 
 
 
 
 
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
---
library_name: transformers
license: mit
language:
- en
widget:
- text: "Give me code to reverse a string in python"
- text: "How do I find today's date in python?"
---

# code-gemma

Google's `gemma-2b-it` trained `code_instructions_122k_alpaca_style` dataset

# Usage

```py
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="gnumanth/code-gemma")
```


```py
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("gnumanth/code-gemma")
model = AutoModelForCausalLM.from_pretrained("gnumanth/code-gemma")
```

[Hemanth HM](https://h3manth.com)