chore: more info
Browse files
README.md
CHANGED
|
@@ -10,3 +10,23 @@ widget:
|
|
| 10 |
# code-gemma
|
| 11 |
|
| 12 |
Google's `gemma-2b-it` trained `code_instructions_122k_alpaca_style` dataset
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
# code-gemma
|
| 11 |
|
| 12 |
Google's `gemma-2b-it` trained `code_instructions_122k_alpaca_style` dataset
|
| 13 |
+
|
| 14 |
+
# Usage
|
| 15 |
+
|
| 16 |
+
```py
|
| 17 |
+
# Use a pipeline as a high-level helper
|
| 18 |
+
from transformers import pipeline
|
| 19 |
+
|
| 20 |
+
pipe = pipeline("text-generation", model="gnumanth/code-gemma")
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
```
|
| 25 |
+
# Load model directly
|
| 26 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 27 |
+
|
| 28 |
+
tokenizer = AutoTokenizer.from_pretrained("gnumanth/code-gemma")
|
| 29 |
+
model = AutoModelForCausalLM.from_pretrained("gnumanth/code-gemma")
|
| 30 |
+
```
|
| 31 |
+
|
| 32 |
+
[Hemanth HM](https://h3manth.com)
|