Spaces:
Sleeping
Sleeping
update REAME
Browse files
README.md
CHANGED
|
@@ -9,59 +9,60 @@ app_file: app.py
|
|
| 9 |
pinned: false
|
| 10 |
models:
|
| 11 |
- google/gemma-2b
|
| 12 |
-
- google/gemma-
|
| 13 |
- google/gemma-7b
|
| 14 |
-
- google/gemma-7b-it
|
| 15 |
tags:
|
| 16 |
- gemma
|
| 17 |
- chat
|
| 18 |
- language-model
|
| 19 |
- code-generation
|
| 20 |
-
short_description: A chat interface for Google's Gemma models.
|
| 21 |
---
|
| 22 |
|
| 23 |
# Gemma Chat Demo
|
| 24 |
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
HuggingFace Spaces Link: https://huggingface.co/spaces/aadya1762/GemmaDemoSt2
|
| 28 |
|
| 29 |
## Features
|
| 30 |
|
| 31 |
-
-
|
| 32 |
-
-
|
| 33 |
-
-
|
| 34 |
-
-
|
| 35 |
-
-
|
| 36 |
-
|
| 37 |
-
-
|
| 38 |
-
-
|
|
|
|
|
|
|
|
|
|
| 39 |
|
| 40 |
-
##
|
| 41 |
|
| 42 |
-
1.
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
|
| 47 |
-
|
|
|
|
|
|
|
|
|
|
| 48 |
|
| 49 |
-
|
| 50 |
-
-
|
| 51 |
-
-
|
|
|
|
| 52 |
|
| 53 |
-
##
|
| 54 |
|
| 55 |
-
|
| 56 |
-
|
| 57 |
-
pip install -r requirements.txt
|
| 58 |
|
| 59 |
-
|
| 60 |
-
python app.py
|
| 61 |
-
```
|
| 62 |
|
| 63 |
-
|
|
|
|
|
|
|
| 64 |
|
| 65 |
-
|
| 66 |
-
- CPU Implementation is very slow (a simple code completion can take around 10 minutes).
|
| 67 |
-
- Limit Scope of Optimization (`torch.compile` takes several minutes to compile & recompiles frequently)
|
|
|
|
| 9 |
pinned: false
|
| 10 |
models:
|
| 11 |
- google/gemma-2b
|
| 12 |
+
- google/gemma-3b
|
| 13 |
- google/gemma-7b
|
|
|
|
| 14 |
tags:
|
| 15 |
- gemma
|
| 16 |
- chat
|
| 17 |
- language-model
|
| 18 |
- code-generation
|
| 19 |
+
short_description: A friendly chat interface for Google's Gemma models.
|
| 20 |
---
|
| 21 |
|
| 22 |
# Gemma Chat Demo
|
| 23 |
|
| 24 |
+
A simple and friendly chat application powered by Google's Gemma AI models.
|
|
|
|
|
|
|
| 25 |
|
| 26 |
## Features
|
| 27 |
|
| 28 |
+
- 💬 Chat with Google's Gemma AI models right on your computer
|
| 29 |
+
- 🔄 Choose between different models:
|
| 30 |
+
- gemma-3b: Balanced performance (recommended)
|
| 31 |
+
- gemma-2b: Faster responses
|
| 32 |
+
- gemma-7b: More capable but requires more resources
|
| 33 |
+
- 🧩 Different chat modes:
|
| 34 |
+
- Question Answering: Get helpful answers to your questions
|
| 35 |
+
- Text Generation: Continue any text or story
|
| 36 |
+
- Code Completion: Get help with coding
|
| 37 |
+
- 🖥️ Simple, easy-to-use interface
|
| 38 |
+
- 📚 No complex setup needed
|
| 39 |
|
| 40 |
+
## Getting Started
|
| 41 |
|
| 42 |
+
1. Install the required packages:
|
| 43 |
+
```
|
| 44 |
+
pip install -r requirements.txt
|
| 45 |
+
```
|
| 46 |
|
| 47 |
+
2. Run the application:
|
| 48 |
+
```
|
| 49 |
+
python app.py
|
| 50 |
+
```
|
| 51 |
|
| 52 |
+
3. When the application starts:
|
| 53 |
+
- Select a model from the dropdown
|
| 54 |
+
- Choose a chat mode
|
| 55 |
+
- Start typing and chatting!
|
| 56 |
|
| 57 |
+
## Requirements
|
| 58 |
|
| 59 |
+
- Python 3.11 or newer
|
| 60 |
+
- Internet connection for first-time model download
|
|
|
|
| 61 |
|
| 62 |
+
## Tips
|
|
|
|
|
|
|
| 63 |
|
| 64 |
+
- For code completion, start by typing the beginning of your code
|
| 65 |
+
- The first time you select a model, it may take a moment to download
|
| 66 |
+
- You can switch between models anytime during your conversation
|
| 67 |
|
| 68 |
+
Enjoy chatting with Gemma!
|
|
|
|
|
|