Spaces:
Running
Running
snowkylin
commited on
Commit
·
7a3c79c
1
Parent(s):
d54b468
update readme
Browse files
README.md
CHANGED
@@ -11,4 +11,48 @@ license: mit
|
|
11 |
short_description: Chat with a character via reference sheet!
|
12 |
---
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
short_description: Chat with a character via reference sheet!
|
12 |
---
|
13 |
|
14 |
+
# Chat with Reference Sheet
|
15 |
+
|
16 |
+
A demo of [Gemma 3](https://blog.google/technology/developers/gemma-3/), demonstrating its excellent vision and multilingual capability.
|
17 |
+
|
18 |
+
## Environment Configuration
|
19 |
+
|
20 |
+
Register an account on [HuggingFace](https://huggingface.co)
|
21 |
+
|
22 |
+
Submit a Gemma Access Request from <https://huggingface.co/google/gemma-3-4b-it>. The access should be granted immediately with an email notification. After that, the model page will show
|
23 |
+
|
24 |
+
> Gated model: You have been granted access to this model
|
25 |
+
|
26 |
+
Create conda environment with pip and Python 3.12
|
27 |
+
```bash
|
28 |
+
conda create -n transformers_gemma pip python=3.12
|
29 |
+
conda activate transformers_gemma
|
30 |
+
```
|
31 |
+
|
32 |
+
Install [HuggingFace Transformers for Gemma 3](https://github.com/huggingface/transformers/releases/tag/v4.49.0-Gemma-3):
|
33 |
+
```bash
|
34 |
+
pip install git+https://github.com/huggingface/[email protected]
|
35 |
+
```
|
36 |
+
|
37 |
+
Install [PyTorch](https://pytorch.org/get-started/locally/)
|
38 |
+
|
39 |
+
On Nvidia GPU (with CUDA 12.6):
|
40 |
+
```bash
|
41 |
+
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
|
42 |
+
```
|
43 |
+
|
44 |
+
On CPU:
|
45 |
+
```bash
|
46 |
+
pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
47 |
+
```
|
48 |
+
|
49 |
+
Create an User Access Token from <https://huggingface.co/docs/hub/security-tokens>, then log in to your HuggingFace account with `huggingface-cli`:
|
50 |
+
|
51 |
+
```bash
|
52 |
+
huggingface-cli login
|
53 |
+
```
|
54 |
+
|
55 |
+
Copy-paste your access token and press enter.
|
56 |
+
|
57 |
+
|
58 |
+
|