Add Gemma license gate and publish local model assets
Build and publish static assets / publish (push) Failing after 2s

This commit is contained in:
Ein Anderssono
2026-10-19 12:02:45 +02:00
parent 440652214c
commit 73c0c0b8ba
16 changed files with 699 additions and 7 deletions
+18
View File
@@ -0,0 +1,18 @@
Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms
Model: Gemma 3 1B Instruct, Q4_K_M GGUF quantization.
The model is distributed under Google's Gemma Terms of Use. The Gemma
Prohibited Use Policy is incorporated by reference into those terms.
User conditions and the terms and policy copies included beside this notice:
- GEMMA_USER_TERMS.html
- GEMMA_TERMS.html
- GEMMA_PROHIBITED_USE_POLICY.html
Model source/conversion provenance: see GEMMA_SOURCE.txt.
Wllama runtime license: see WLLAMA_LICENSE.txt.
Google does not sponsor, endorse, or have any relationship with this game.
The browser runtime also includes Wllama (MIT) and llama.cpp (MIT); their license
texts are included as WLLAMA_LICENSE.txt and LLAMA_CPP_LICENSE.txt.
+35
View File
@@ -0,0 +1,35 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Gemma Prohibited Use Policy — official text copy</title></head>
<body><main><h1>Gemma Prohibited Use Policy — official text copy</h1><p>Official Google AI for Developers text, saved for redistribution with the Gemma model. Source: <a href="https://ai.google.dev/gemma/prohibited_use_policy">Google AI for Developers</a>.</p><pre style="white-space:pre-wrap;font:inherit">Google reserves the right to update this Gemma Prohibited Use Policy from time to time.
Last modified: February 21, 2024
You may not use nor allow others to use Gemma or Model Derivatives to:
• Generate any content, including the outputs or results generated by Gemma or Model Derivatives, that infringes, misappropriates, or otherwise violates any individual&#x27;s or entity&#x27;s rights (including, but not limited to rights in copyrighted content).
• Perform or facilitate dangerous, illegal, or malicious activities, including:
• Facilitation or promotion of illegal activities or violations of law, such as:
• Promoting or generating content related to child sexual abuse or exploitation;
• Promoting or facilitating sale of, or providing instructions for synthesizing or accessing, illegal substances, goods, or services;
• Facilitating or encouraging users to commit any type of crimes; or
• Promoting or generating violent extremism or terrorist content.
• Engagement in the illegal or unlicensed practice of any vocation or profession including, but not limited to, legal, medical, accounting, or financial professional practices.
• Abuse, harm, interference, or disruption of services (or enable others to do the same), such as:
• Promoting or facilitating the generation or distribution of spam; or
• Generating content for deceptive or fraudulent activities, scams, phishing, or malware.
• Attempts to override or circumvent safety filters or intentionally drive Gemma or Model Derivatives to act in a manner that contravenes this Gemma Prohibited Use Policy.
• Generation of content that may harm or promote the harm of individuals or a group, such as:
• Generating content that promotes or encourages hatred;
• Facilitating methods of harassment or bullying to intimidate, abuse, or insult others;
• Generating content that facilitates, promotes, or incites violence;
• Generating content that facilitates, promotes, or encourages self harm;
• Generating personally identifying information for distribution or other harms;
• Tracking or monitoring people without their consent;
• Generating content that may have unfair or adverse impacts on people, particularly impacts related to sensitive or protected characteristics; or
• Generating, gathering, processing, or inferring sensitive personal or private information about individuals without obtaining all rights, authorizations, and consents required by applicable laws.
• Generate and distribute content intended to misinform, misrepresent or mislead, including:
• Misrepresentation of the provenance of generated content by claiming content was created by a human, or represent generated content as original works, in order to deceive;
• Generation of content that impersonates an individual (living or dead) without explicit disclosure, in order to deceive;
• Misleading claims of expertise or capability made particularly in sensitive areas (e.g. health, finance, government services, or legal);
• Making automated decisions in domains that affect material or individual rights or well-being (e.g., finance, legal, employment, healthcare, housing, insurance, and social welfare);
• Generation of defamatory content, including defamatory statements, images, or audio content; or
• Engaging in the unauthorized or unlicensed practice of any profession including, but not limited to, financial, legal, medical/health, or related professional practices.
• Generate sexually explicit content, including content created for the purposes of pornography or sexual gratification (e.g. sexual chatbots). Note that this does not include content created for scientific, educational, documentary, or artistic purposes.
Send feedback</pre></main></body></html>
+21
View File
@@ -0,0 +1,21 @@
Model: google/gemma-3-1b-it
Distributed GGUF repository: ggml-org/gemma-3-1b-it-GGUF
Distributed file: gemma-3-1b-it-Q4_K_M.gguf
Repository revision: f9c28bcd85737ffc5aef028638d3341d49869c27
Pinned upstream URL: https://huggingface.co/ggml-org/gemma-3-1b-it-GGUF/resolve/f9c28bcd85737ffc5aef028638d3341d49869c27/gemma-3-1b-it-Q4_K_M.gguf
File SHA-256: 8ccc5cd1f1b3602548715ae25a66ed73fd5dc68a210412eea643eb20eb75a135
The upstream GGUF repository provides a quantized conversion of Google's
Gemma 3 1B Instruct model. Model use and redistribution remain subject to the
Gemma Terms of Use and Gemma Prohibited Use Policy distributed with this file.
Runtime components:
- Wllama 3.8.1, npm package @wllama/wllama; MIT; see WLLAMA_LICENSE.txt.
- llama.cpp WebAssembly backend; MIT; see LLAMA_CPP_LICENSE.txt.
Legal text snapshots checked against Google's official pages on 2026-10-19:
- https://ai.google.dev/gemma/terms/ (page states last modified April 1, 2026)
- https://ai.google.dev/gemma/prohibited_use_policy (page states last modified February 21, 2024)
The bundled HTML contains the full article text in a minimal, script-free wrapper.
The manifest fingerprints the exact bundled copies; a changed copy requires new
user acceptance before this browser downloads or uses Gemma.
+80
View File
@@ -0,0 +1,80 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><title>Gemma Terms of Use — official text copy</title></head>
<body><main><h1>Gemma Terms of Use — official text copy</h1><p>Official Google AI for Developers text, saved for redistribution with the Gemma model. Source: <a href="https://ai.google.dev/gemma/terms/">Google AI for Developers</a>.</p><pre style="white-space:pre-wrap;font:inherit">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 .
Last modified: April 1, 2026
By using, reproducing, modifying, distributing, performing or displaying any portion or element of Gemma, Model Derivatives including via any Hosted Service, (each as defined below) (collectively, the &quot; Gemma Services &quot;) or otherwise accepting the terms of this Agreement, you agree to be bound by this Agreement.
Section 1: DEFINITIONS
1.1 Definitions
(a) &quot; Agreement &quot; or &quot; Gemma Terms of Use &quot; means these terms and conditions that govern the use, reproduction, Distribution or modification of the Gemma Services and any terms and conditions incorporated by reference.
(b) &quot; Distribution &quot; or &quot; Distribute &quot; means any transmission, publication, or other sharing of Gemma or Model Derivatives to a third party, including by providing or making Gemma or its functionality available as a hosted service via API, web access, or any other electronic or remote means (&quot; Hosted Service &quot;).
(c) &quot; Gemma &quot; means the set of machine learning language models, trained model weights and parameters identified in the Appendix , regardless of the source that you obtained it from.
(d) &quot; Google &quot; means Google LLC.
(e) &quot; Model Derivatives &quot; means all (i) modifications to Gemma, (ii) works based on Gemma, or (iii) any other machine learning model which is created by transfer of patterns of the weights, parameters, operations, or Output of Gemma, to that model in order to cause that model to perform similarly to Gemma, including distillation methods that use intermediate data representations or methods based on the generation of synthetic data Outputs by Gemma for training that model. For clarity, Outputs are not deemed Model Derivatives.
(f) &quot; Output &quot; means the information content output of Gemma or a Model Derivative that results from operating or otherwise using Gemma or the Model Derivative, including via a Hosted Service.
1.2
As used in this Agreement, &quot; including &quot; means &quot; including without limitation &quot;.
Section 2: ELIGIBILITY AND USAGE
2.1 Eligibility
You represent and warrant that you have the legal capacity to enter into this Agreement (including being of sufficient age of consent). If you are accessing or using any of the Gemma Services for or on behalf of a legal entity, (a) you are entering into this Agreement on behalf of yourself and that legal entity, (b) you represent and warrant that you have the authority to act on behalf of and bind that entity to this Agreement and (c) references to &quot; you &quot; or &quot; your &quot; in the remainder of this Agreement refers to both you (as an individual) and that entity.
2.2 Use
You may use, reproduce, modify, Distribute, perform or display any of the Gemma Services only in accordance with the terms of this Agreement, and must not violate (or encourage or permit anyone else to violate) any term of this Agreement.
Section 3: DISTRIBUTION AND RESTRICTIONS
3.1 Distribution and Redistribution
You may reproduce or Distribute copies of Gemma or Model Derivatives if you meet all of the following conditions:
• You must include the use restrictions referenced in Section 3.2 as an enforceable provision in any agreement (e.g., license agreement, terms of use, etc.) governing the use and/or distribution of Gemma or Model Derivatives and you must provide notice to subsequent users you Distribute to that Gemma or Model Derivatives are subject to the use restrictions in Section 3.2.
• You must provide all third party recipients of Gemma or Model Derivatives a copy of this Agreement.
• You must cause any modified files to carry prominent notices stating that you modified the files.
• All Distributions (other than through a Hosted Service) must be accompanied by a &quot; Notice &quot; text file that contains the following notice: &quot; Gemma is provided under and subject to the Gemma Terms of Use found at ai.google.dev/gemma/terms &quot;.
You may add your own intellectual property statement to your modifications and, except as set forth in this Section, may provide additional or different terms and conditions for use, reproduction, or Distribution of your modifications, or for any such Model Derivatives as a whole, provided your use, reproduction, modification, Distribution, performance, and display of Gemma otherwise complies with the terms and conditions of this Agreement. Any additional or different terms and conditions you impose must not conflict with the terms of this Agreement.
3.2 Use Restrictions
You must not use any of the Gemma Services:
• for the restricted uses set forth in the Gemma Prohibited Use Policy at ai.google.dev/gemma/prohibited_use_policy (&quot; Prohibited Use Policy &quot;), which is hereby incorporated by reference into this Agreement; or
• in violation of applicable laws and regulations.
To the maximum extent permitted by law, Google reserves the right to restrict (remotely or otherwise) usage of any of the Gemma Services that Google reasonably believes are in violation of this Agreement.
3.3 Generated Output
Google claims no rights in Outputs you generate using Gemma. You and your users are solely responsible for Outputs and their subsequent uses.
Section 4: ADDITIONAL PROVISIONS
4.1 Updates
Google may update Gemma from time to time.
4.2 Trademarks
Nothing in this Agreement grants you any rights to use Google&#x27;s trademarks, trade names, logos or to otherwise suggest endorsement or misrepresent the relationship between you and Google. Google reserves any rights not expressly granted herein.
4.3 DISCLAIMER OF WARRANTY
UNLESS REQUIRED BY APPLICABLE LAW, THE GEMMA SERVICES, AND OUTPUTS, ARE PROVIDED ON AN &quot;AS IS&quot; BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OR CONDITIONS OF TITLE, NON-INFRINGEMENT, MERCHANTABILITY, OR FITNESS FOR A PARTICULAR PURPOSE. YOU ARE SOLELY RESPONSIBLE FOR DETERMINING THE APPROPRIATENESS OF USING, REPRODUCING, MODIFYING, PERFORMING, DISPLAYING OR DISTRIBUTING ANY OF THE GEMMA SERVICES OR OUTPUTS AND ASSUME ANY AND ALL RISKS ASSOCIATED WITH YOUR USE OR DISTRIBUTION OF ANY OF THE GEMMA SERVICES OR OUTPUTS AND YOUR EXERCISE OF RIGHTS AND PERMISSIONS UNDER THIS AGREEMENT.
4.4 LIMITATION OF LIABILITY
TO THE FULLEST EXTENT PERMITTED BY APPLICABLE LAW, IN NO EVENT AND UNDER NO LEGAL THEORY, WHETHER IN TORT (INCLUDING NEGLIGENCE), PRODUCT LIABILITY, CONTRACT, OR OTHERWISE, UNLESS REQUIRED BY APPLICABLE LAW, SHALL GOOGLE OR ITS AFFILIATES BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL, EXEMPLARY, CONSEQUENTIAL, OR PUNITIVE DAMAGES, OR LOST PROFITS OF ANY KIND ARISING FROM THIS AGREEMENT OR RELATED TO, ANY OF THE GEMMA SERVICES OR OUTPUTS EVEN IF GOOGLE OR ITS AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
4.5 Term, Termination, and Survival
The term of this Agreement will commence upon your acceptance of this Agreement (including acceptance by your use, modification, or Distribution, reproduction, performance or display of any portion or element of the Gemma Services) and will continue in full force and effect until terminated in accordance with the terms of this Agreement. Google may terminate this Agreement if you are in breach of any term of this Agreement. Upon termination of this Agreement, you must delete and cease use and Distribution of all copies of Gemma and Model Derivatives in your possession or control. Sections 1, 2.1, 3.3, 4.2 to 4.9 shall survive the termination of this Agreement.
4.6 Governing Law and Jurisdiction
This Agreement will be governed by the laws of the State of California without regard to choice of law principles. The UN Convention on Contracts for the International Sale of Goods does not apply to this Agreement. The state and federal courts of Santa Clara County, California shall have exclusive jurisdiction of any dispute arising out of this Agreement.
4.7 Severability
If any provision of this Agreement is held to be invalid, illegal or unenforceable, the remaining provisions shall be unaffected thereby and remain valid as if such provision had not been set forth herein.
4.8 Entire Agreement
This Agreement states all the terms agreed between the parties and supersedes all other agreements between the parties as of the date of acceptance relating to its subject matter.
4.9 No Waiver
Google will not be treated as having waived any rights by not exercising (or delaying the exercise of) any rights under this Agreement.
Appendix
• Gemma 1
• Gemma 1.1
• Gemma 2
• Gemma 3
• Gemma 3n
• FunctionGemma
• EmbeddingGemma
• PaliGemma
• PaliGemma 2
• ShieldGemma
• ShieldGemma 2
• CodeGemma
• CodeGemma 1.1
• Gemma 2 JPN
• DataGemma RIG
• DataGemma RAG
• RecurrentGemma
• Gemma Scope
• Gemma-APS
• T5Gemma
• VaultGemma
• FunctionGemma
• T5Gemma 2
• TranslateGemma
Note: Previous versions of these Terms are archived here . Send feedback</pre></main></body></html>
+17
View File
@@ -0,0 +1,17 @@
<!doctype html>
<html lang="sv">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Villkor för lokal Gemma-funktion</title>
</head>
<body>
<main>
<h1>Villkor för lokal Gemma-funktion</h1>
<p>Den lokala Gemma-funktionen är frivillig. Genom att uttryckligen godkänna och använda funktionen samtycker du till följande villkor för din användning av Gemma 3-modellen och dess utdata.</p>
<p>Du får endast använda Gemma i enlighet med <a href="GEMMA_TERMS.html">Gemma Terms of Use</a>, inklusive alla användningsbegränsningar i <a href="GEMMA_PROHIBITED_USE_POLICY.html">Gemma Prohibited Use Policy</a>, vilka här införlivas i dessa villkor. Du får inte använda eller tillåta användning av Gemma på sätt som förbjuds där eller i strid med tillämpliga lagar.</p>
<p>Du bekräftar att du har rättslig behörighet att ingå detta avtal, inklusive tillräcklig ålder för att samtycka. Du ansvarar för Gemmas utdata och hur du använder dem.</p>
<p>Villkoren gäller endast den frivilliga lokala Gemma-funktionen. Om du avböjer används inte modellen och spelet kan fortsätta utan den.</p>
</main>
</body>
</html>
+21
View File
@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2023-2026 The ggml authors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.