You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
|**Gemini**| 🔐<br>Proprietary | API only *(This repository contains unofficial API)*| Gemini is a proprietary multimodal AI developed by Google DeepMind. It includes models like Gemini Pro and Gemini Pro Vision. |[Paper](https://arxiv.org/abs/2312.11805), [Website](https://deepmind.google/technologies/gemini/#introduction), [API](https://aistudio.google.com/), [API Docs](https://cloud.google.com/vertex-ai/docs/generative-ai/model-reference/gemini)|
32
-
|**Gemma**| 🤝<br>Open Source | Downloadable weights for on-premises use | Gemma models are open-source, text-to-text language models with downloadable weights. Perfect for use cases like question answering and summarization. |[Paprer](https://arxiv.org/abs/2403.08295), [Website](https://ai.google.dev/gemma/docs?hl=ko), [Model Card](https://huggingface.co/google/gemma-7b)|
33
-
|**Code Gemma**| 🤝<br>Open Source | Downloadable weights for on-premises use | Code Gemma models are designed specifically for coding tasks and are also open-source, providing flexibility for developers in handling code generation tasks. |[Paper](https://storage.googleapis.com/deepmind-media/gemma/codegemma_report.pdf?utm_source=substack&utm_medium=email), [Post](https://huggingface.co/blog/codegemma), [Hugging Face Collection](https://huggingface.co/collections/google/codegemma-release-66152ac7b683e2667abdee11), [Model Card](https://huggingface.co/google/codegemma-7b-it)|
34
-
35
-
<details><summary>Code Examples of Gemma and GemmaCode </summary>
36
-
37
-
#### Gemma
38
-
```python
39
-
from transformers import AutoTokenizer, AutoModelForCausalLM
-[Utilize free open-source LLM API through Open Router ✅](#utilize-free-open-source-llm-api-through-open-router)
97
60
98
61
@@ -607,13 +570,21 @@ If you want to develop your own simple code, you can start from [this simple cod
607
570
608
571
<br>
609
572
573
+
## Google Open-source LLMs
574
+
If you have sufficient GPU resources, you can download weights directly instead of using the Gemini API to generate content. Consider Gemma and Code Gemma, an open-source models **available for on-premises use**.
|[Gemini](https://huggingface.co/google/gemma-7b)| 🔐<br>Proprietary | API only | A proprietary multimodal AI by Google DeepMind, Gemini includes advanced models like Gemini Pro and Gemini Pro Vision. Access to Gemini is limited to API use through an [official API](https://aistudio.google.com/) and [unofficial API](https://github.com/dsdanielpark/Gemini-API), and further insights can be gathered from the [paper](https://arxiv.org/abs/2312.11805) and the [official website](https://deepmind.google/technologies/gemini/#introduction)|
578
+
|[Gemma](https://huggingface.co/google/gemma-7b)| 🤝<br>Open Source | Downloadable | An open-source, text-to-text language model, Gemma is ideal for tasks like question answering and summarization. The model's weights are downloadable for on-premises use, and details are available in the [paper](https://arxiv.org/abs/2403.08295), on the [website](https://ai.google.dev/gemma/docs)|
579
+
|[Code Gemma](https://huggingface.co/google/codegemma-7b-it)| 🤝<br>Open Source | Downloadable | Specifically designed for coding tasks, Code Gemma is another open-source model from Google. It provides downloadable weights to aid developers with code generation and related tasks. More information can be found in the [paper](https://storage.googleapis.com/deepmind-media/gemma/codegemma_report.pdf?utm_source=substack&utm_medium=email), [blog post](https://huggingface.co/blog/codegemma), and the [Hugging Face collection](https://huggingface.co/collections/google/codegemma-release-66152ac7b683e2667abdee11)|
If you have sufficient GPU resources, you can download weights directly instead of using the Gemini API to generate content. Consider Gemma, an open-source model **available for on-premises use**.
613
584
614
585
[Gemma](https://huggingface.co/google/gemma-7b) models are Google's lightweight, advanced text-to-text, decoder-only language models, derived from Gemini research. Available in English, they offer open weights and variants, ideal for tasks like question answering and summarization. Their small size enables deployment in resource-limited settings, broadening access to cutting-edge AI. For more infomation, visit [Gemma-7b](https://huggingface.co/google/gemma-7b) model card.
615
586
616
-
### How to use Gemma
587
+
####How to use Gemma
617
588
```python
618
589
from transformers import AutoTokenizer, AutoModelForCausalLM
[CodeGemma](https://huggingface.co/blog/codegemma), which is an official release from Google for code LLMs, was released on April 9, 2024. It provides three models specifically designed for generating and interacting with code. You can explore the [Code Gemma models](https://huggingface.co/collections/google/codegemma-release-66152ac7b683e2667abdee11) and view the [model card](https://huggingface.co/google/codegemma-7b-it) for more details.
635
604
636
-
### How to use Code Gemma
605
+
####How to use Code Gemma
637
606
```python
638
607
from transformers import GemmaTokenizer, AutoModelForCausalLM
0 commit comments