Instructions to use innerloop-dev/gemma3-4b-text with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use innerloop-dev/gemma3-4b-text with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf innerloop-dev/gemma3-4b-text:Q4_K_M # Run inference directly in the terminal: llama cli -hf innerloop-dev/gemma3-4b-text:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf innerloop-dev/gemma3-4b-text:Q4_K_M # Run inference directly in the terminal: llama cli -hf innerloop-dev/gemma3-4b-text:Q4_K_M
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf innerloop-dev/gemma3-4b-text:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf innerloop-dev/gemma3-4b-text:Q4_K_M
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf innerloop-dev/gemma3-4b-text:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf innerloop-dev/gemma3-4b-text:Q4_K_M
Use Docker
docker model run hf.co/innerloop-dev/gemma3-4b-text:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use innerloop-dev/gemma3-4b-text with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "innerloop-dev/gemma3-4b-text" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "innerloop-dev/gemma3-4b-text", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/innerloop-dev/gemma3-4b-text:Q4_K_M
- Ollama
How to use innerloop-dev/gemma3-4b-text with Ollama:
ollama run hf.co/innerloop-dev/gemma3-4b-text:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use innerloop-dev/gemma3-4b-text with Docker Model Runner:
docker model run hf.co/innerloop-dev/gemma3-4b-text:Q4_K_M
- Lemonade
How to use innerloop-dev/gemma3-4b-text with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull innerloop-dev/gemma3-4b-text:Q4_K_M
Run and chat with the model
lemonade run user.gemma3-4b-text-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload LICENSE with huggingface_hub
Browse files
LICENSE
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
================================================================================
|
| 2 |
+
|
| 3 |
+
GEMMA TERMS OF USE
|
| 4 |
+
|
| 5 |
+
A complete copy of the Agreement, as published at https://ai.google.dev/gemma/terms
|
| 6 |
+
and retrieved on 2026-09-20. Last modified April 1, 2026.
|
| 7 |
+
|
| 8 |
+
================================================================================
|
| 9 |
+
|
| 10 |
+
The terms below apply to Gemma models listed in the Appendix at bottom of this page. For Gemma 4 terms, see the Gemma 4 license.
|
| 11 |
+
|
| 12 |
+
Last modified: April 1, 2026
|
| 13 |
+
|
| 14 |
+
By using, reproducing, modifying, distributing, performing or displaying any
|
| 15 |
+
portion or element of Gemma, Model Derivatives including via any Hosted Service,
|
| 16 |
+
(each as defined below) (collectively, the "Gemma Services") or otherwise
|
| 17 |
+
accepting the terms of this Agreement, you agree to be bound by this Agreement.
|
| 18 |
+
|
| 19 |
+
Section 1: DEFINITIONS
|
| 20 |
+
|
| 21 |
+
1.1 Definitions
|
| 22 |
+
|
| 23 |
+
(a) "Agreement" or "Gemma Terms of Use" means these terms and conditions
|
| 24 |
+
that govern the use, reproduction, Distribution or modification of the Gemma
|
| 25 |
+
Services and any terms and conditions incorporated by reference.
|
| 26 |
+
|
| 27 |
+
(b) "Distribution" or "Distribute" means any transmission, publication,
|
| 28 |
+
or other sharing of Gemma or Model Derivatives to a third party, including by
|
| 29 |
+
providing or making Gemma or its functionality available as a hosted service via
|
| 30 |
+
API, web access, or any other electronic or remote means ("Hosted Service").
|
| 31 |
+
|
| 32 |
+
(c) "Gemma" means the set of machine learning language models, trained model
|
| 33 |
+
weights and parameters identified in the Appendix,
|
| 34 |
+
regardless of the source that you obtained it from.
|
| 35 |
+
|
| 36 |
+
(d) "Google" means Google LLC.
|
| 37 |
+
|
| 38 |
+
(e) "Model Derivatives" means all (i) modifications to Gemma, (ii) works based
|
| 39 |
+
on Gemma, or (iii) any other machine learning model which is created by transfer
|
| 40 |
+
of patterns of the weights, parameters, operations, or Output of Gemma, to that
|
| 41 |
+
model in order to cause that model to perform similarly to Gemma, including
|
| 42 |
+
distillation methods that use intermediate data representations or methods based
|
| 43 |
+
on the generation of synthetic data Outputs by Gemma for training that model.
|
| 44 |
+
For clarity, Outputs are not deemed Model Derivatives.
|
| 45 |
+
|
| 46 |
+
(f) "Output" means the information content output of Gemma or a Model
|
| 47 |
+
Derivative that results from operating or otherwise using Gemma or the Model
|
| 48 |
+
Derivative, including via a Hosted Service.
|
| 49 |
+
|
| 50 |
+
1.2
|
| 51 |
+
|
| 52 |
+
As used in this Agreement, "including" means
|
| 53 |
+
"including without limitation".
|
| 54 |
+
|
| 55 |
+
Section 2: ELIGIBILITY AND USAGE
|
| 56 |
+
|
| 57 |
+
2.1 Eligibility
|
| 58 |
+
|
| 59 |
+
You represent and warrant that you have the legal capacity to enter into this
|
| 60 |
+
Agreement (including being of sufficient age of consent). If you are accessing
|
| 61 |
+
or using any of the Gemma Services for or on behalf of a legal entity, (a) you
|
| 62 |
+
are entering into this Agreement on behalf of yourself and that legal entity,
|
| 63 |
+
(b) you represent and warrant that you have the authority to act on behalf of
|
| 64 |
+
and bind that entity to this Agreement and (c) references to "you" or
|
| 65 |
+
"your" in the remainder of this Agreement refers to both you (as an
|
| 66 |
+
individual) and that entity.
|
| 67 |
+
|
| 68 |
+
2.2 Use
|
| 69 |
+
|
| 70 |
+
You may use, reproduce, modify, Distribute, perform or display any of the Gemma
|
| 71 |
+
Services only in accordance with the terms of this Agreement, and must not
|
| 72 |
+
violate (or encourage or permit anyone else to violate) any term of this
|
| 73 |
+
Agreement.
|
| 74 |
+
|
| 75 |
+
Section 3: DISTRIBUTION AND RESTRICTIONS
|
| 76 |
+
|
| 77 |
+
3.1 Distribution and Redistribution
|
| 78 |
+
|
| 79 |
+
You may reproduce or Distribute copies of Gemma or Model Derivatives if you meet
|
| 80 |
+
all of the following conditions:
|
| 81 |
+
|
| 82 |
+
- You must include the use restrictions referenced in Section 3.2 as an
|
| 83 |
+
enforceable provision in any agreement (e.g., license agreement, terms of use,
|
| 84 |
+
etc.) governing the use and/or distribution of Gemma or Model Derivatives and
|
| 85 |
+
you must provide notice to subsequent users you Distribute to that Gemma or
|
| 86 |
+
Model Derivatives are subject to the use restrictions in Section 3.2.
|
| 87 |
+
|
| 88 |
+
- You must provide all third party recipients of Gemma or Model Derivatives a
|
| 89 |
+
copy of this Agreement.
|
| 90 |
+
|
| 91 |
+
- You must cause any modified files to carry prominent notices stating that you
|
| 92 |
+
modified the files.
|
| 93 |
+
|
| 94 |
+
- All Distributions (other than through a Hosted Service) must be accompanied
|
| 95 |
+
by a "Notice" text file that contains the following notice:
|
| 96 |
+
"Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms".
|
| 97 |
+
|
| 98 |
+
You may add your own intellectual property statement to your modifications and,
|
| 99 |
+
except as set forth in this Section, may provide additional or different terms
|
| 100 |
+
and conditions for use, reproduction, or Distribution of your modifications, or
|
| 101 |
+
for any such Model Derivatives as a whole, provided your use, reproduction,
|
| 102 |
+
modification, Distribution, performance, and display of Gemma otherwise complies
|
| 103 |
+
with the terms and conditions of this Agreement. Any additional or different
|
| 104 |
+
terms and conditions you impose must not conflict with the terms of this
|
| 105 |
+
Agreement.
|
| 106 |
+
|
| 107 |
+
3.2 Use Restrictions
|
| 108 |
+
|
| 109 |
+
You must not use any of the Gemma Services:
|
| 110 |
+
|
| 111 |
+
- for the restricted uses set forth in the Gemma Prohibited Use Policy at
|
| 112 |
+
ai.google.dev/gemma/prohibited_use_policy
|
| 113 |
+
("Prohibited Use Policy"), which is hereby incorporated by reference into
|
| 114 |
+
this Agreement; or
|
| 115 |
+
|
| 116 |
+
- in violation of applicable laws and regulations.
|
| 117 |
+
|
| 118 |
+
To the maximum extent permitted by law, Google reserves the right to restrict
|
| 119 |
+
(remotely or otherwise) usage of any of the Gemma Services that Google
|
| 120 |
+
reasonably believes are in violation of this Agreement.
|
| 121 |
+
|
| 122 |
+
3.3 Generated Output
|
| 123 |
+
|
| 124 |
+
Google claims no rights in Outputs you generate using Gemma. You and your users
|
| 125 |
+
are solely responsible for Outputs and their subsequent uses.
|
| 126 |
+
|
| 127 |
+
Section 4: ADDITIONAL PROVISIONS
|
| 128 |
+
|
| 129 |
+
4.1 Updates
|
| 130 |
+
|
| 131 |
+
Google may update Gemma from time to time.
|
| 132 |
+
|
| 133 |
+
4.2 Trademarks
|
| 134 |
+
|
| 135 |
+
Nothing in this Agreement grants you any rights to use Google's trademarks,
|
| 136 |
+
trade names, logos or to otherwise suggest endorsement or misrepresent the
|
| 137 |
+
relationship between you and Google. Google reserves any rights not expressly
|
| 138 |
+
granted herein.
|
| 139 |
+
|
| 140 |
+
4.3 DISCLAIMER OF WARRANTY
|
| 141 |
+
|
| 142 |
+
UNLESS REQUIRED BY APPLICABLE LAW, THE GEMMA SERVICES, AND OUTPUTS, ARE PROVIDED
|
| 143 |
+
ON AN "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER
|
| 144 |
+
EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OR CONDITIONS OF TITLE,
|
| 145 |
+
NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE
|
| 146 |
+
SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING,
|
| 147 |
+
MODIFYING, PERFORMING, DISPLAYING OR DISTRIBUTING ANY OF THE GEMMA SERVICES
|
| 148 |
+
OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR USE OR DISTRIBUTION
|
| 149 |
+
OF ANY OF THE GEMMA SERVICES OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND
|
| 150 |
+
PERMISSIONS UNDER THIS AGREEMENT.
|
| 151 |
+
|
| 152 |
+
4.4 LIMITATION OF LIABILITY
|
| 153 |
+
|
| 154 |
+
TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO
|
| 155 |
+
LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY,
|
| 156 |
+
CONTRACT, OR OTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW, SHALL GOOGLE OR ITS
|
| 157 |
+
AFFILIATES BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT,
|
| 158 |
+
SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR LOST
|
| 159 |
+
PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO, ANY OF THE GEMMA
|
| 160 |
+
SERVICES OR OUTPUTS EVEN IF GOOGLE OR ITS AFFILIATES HAVE BEEN ADVISED OF THE
|
| 161 |
+
POSSIBILITY OF SUCH DAMAGES.
|
| 162 |
+
|
| 163 |
+
4.5 Term, Termination, and Survival
|
| 164 |
+
|
| 165 |
+
The term of this Agreement will commence upon your acceptance of this Agreement
|
| 166 |
+
(including acceptance by your use, modification, or Distribution, reproduction,
|
| 167 |
+
performance or display of any portion or element of the Gemma Services) and will
|
| 168 |
+
continue in full force and effect until terminated in accordance with the terms
|
| 169 |
+
of this Agreement. Google may terminate this Agreement if you are in breach of
|
| 170 |
+
any term of this Agreement. Upon termination of this Agreement, you must delete
|
| 171 |
+
and cease use and Distribution of all copies of Gemma and Model Derivatives in
|
| 172 |
+
your possession or control. Sections 1, 2.1, 3.3, 4.2 to 4.9 shall survive the
|
| 173 |
+
termination of this Agreement.
|
| 174 |
+
|
| 175 |
+
4.6 Governing Law and Jurisdiction
|
| 176 |
+
|
| 177 |
+
This Agreement will be governed by the laws of the State of California without
|
| 178 |
+
regard to choice of law principles. The UN Convention on Contracts for the
|
| 179 |
+
International Sale of Goods does not apply to this Agreement. The state and
|
| 180 |
+
federal courts of Santa Clara County, California shall have exclusive
|
| 181 |
+
jurisdiction of any dispute arising out of this Agreement.
|
| 182 |
+
|
| 183 |
+
4.7 Severability
|
| 184 |
+
|
| 185 |
+
If any provision of this Agreement is held to be invalid, illegal or
|
| 186 |
+
unenforceable, the remaining provisions shall be unaffected thereby and remain
|
| 187 |
+
valid as if such provision had not been set forth herein.
|
| 188 |
+
|
| 189 |
+
4.8 Entire Agreement
|
| 190 |
+
|
| 191 |
+
This Agreement states all the terms agreed between the parties and supersedes
|
| 192 |
+
all other agreements between the parties as of the date of acceptance relating
|
| 193 |
+
to its subject matter.
|
| 194 |
+
|
| 195 |
+
4.9 No Waiver
|
| 196 |
+
|
| 197 |
+
Google will not be treated as having waived any rights by not exercising (or
|
| 198 |
+
delaying the exercise of) any rights under this Agreement.
|
| 199 |
+
|
| 200 |
+
Appendix
|
| 201 |
+
|
| 202 |
+
- Gemma 1
|
| 203 |
+
|
| 204 |
+
- Gemma 1.1
|
| 205 |
+
|
| 206 |
+
- Gemma 2
|
| 207 |
+
|
| 208 |
+
- Gemma 3
|
| 209 |
+
|
| 210 |
+
- Gemma 3n
|
| 211 |
+
|
| 212 |
+
- FunctionGemma
|
| 213 |
+
|
| 214 |
+
- EmbeddingGemma
|
| 215 |
+
|
| 216 |
+
- PaliGemma
|
| 217 |
+
|
| 218 |
+
- PaliGemma 2
|
| 219 |
+
|
| 220 |
+
- ShieldGemma
|
| 221 |
+
|
| 222 |
+
- ShieldGemma 2
|
| 223 |
+
|
| 224 |
+
- CodeGemma
|
| 225 |
+
|
| 226 |
+
- CodeGemma 1.1
|
| 227 |
+
|
| 228 |
+
- Gemma 2 JPN
|
| 229 |
+
|
| 230 |
+
- DataGemma RIG
|
| 231 |
+
|
| 232 |
+
- DataGemma RAG
|
| 233 |
+
|
| 234 |
+
- RecurrentGemma
|
| 235 |
+
|
| 236 |
+
- Gemma Scope
|
| 237 |
+
|
| 238 |
+
- Gemma-APS
|
| 239 |
+
|
| 240 |
+
- T5Gemma
|
| 241 |
+
|
| 242 |
+
- VaultGemma
|
| 243 |
+
|
| 244 |
+
- FunctionGemma
|
| 245 |
+
|
| 246 |
+
- T5Gemma 2
|
| 247 |
+
|
| 248 |
+
- TranslateGemma
|
| 249 |
+
|
| 250 |
+
Note: Previous versions of these Terms are archived here.
|