Instructions to use DevWorld/Gemago-2b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DevWorld/Gemago-2b with Transformers:
# Use a pipeline as a high-level helper # Warning: Pipeline type "translation" is no longer supported in transformers v5. # You must load the model directly (see below) or downgrade to v4.x with: # pip install "transformers<5.0.0" from transformers import pipeline pipe = pipeline("translation", model="DevWorld/Gemago-2b")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DevWorld/Gemago-2b") model = AutoModelForCausalLM.from_pretrained("DevWorld/Gemago-2b", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse filesNot keras now, we use transformers at this time.
README.md
CHANGED
|
@@ -37,7 +37,7 @@ Models are trained on a context length of 8192 tokens, which is equivalent to Ge
|
|
| 37 |
|
| 38 |
### Usage
|
| 39 |
|
| 40 |
-
Below we share some code snippets on how to get quickly started with running the model. First make sure to `pip install -U
|
| 41 |
|
| 42 |
#### Running the model with transformers
|
| 43 |
[](https://colab.research.google.com/github/deveworld/Gemago/blob/main/Gemago_2b_Infer.ipynb)
|
|
|
|
| 37 |
|
| 38 |
### Usage
|
| 39 |
|
| 40 |
+
Below we share some code snippets on how to get quickly started with running the model. First make sure to `pip install -U transformers`, then copy the snippet from the section that is relevant for your usecase.
|
| 41 |
|
| 42 |
#### Running the model with transformers
|
| 43 |
[](https://colab.research.google.com/github/deveworld/Gemago/blob/main/Gemago_2b_Infer.ipynb)
|