Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ single-line-if-stmt=yes
max-module-lines=99999

# String used as indentation unit. The internal Google style guide mandates 2
# spaces. Google's externaly-published style guide says 4, consistent with
# spaces. Google's externally-published style guide says 4, consistent with
# PEP 8. Here, we use 2 spaces, for conformity with many open-sourced Google
# projects (like TensorFlow).
indent-string=' '
Expand Down
2 changes: 1 addition & 1 deletion examples/lora.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ def get_config():
mask="batch.loss_mask",
),
},
# TODO(epot): Add Gradient accumenlation.
# TODO(epot): Add Gradient accumulation.
optimizer=kd.optim.partial_updates(
optax.adafactor(learning_rate=0.005),
# We only optimize the LoRA weights. The rest of the model is frozen.
Expand Down
2 changes: 1 addition & 1 deletion gemma/gm/text/_prefill.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ def prefill(
{'params': params},
tokens=prefill_input.tokens,
images=prefill_input.images,
# Slice the cache to the prompt length, to avoid shape missmatch error.
# Slice the cache to the prompt length, to avoid shape mismatch error.
cache=prefill_input.cache.cache,
positions=prefill_input.positions,
attention_mask=prefill_input.attention_mask,
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ changelog = "https://github.com/google-deepmind/gemma/blob/main/CHANGELOG.md"
# documentation = ""

[project.optional-dependencies]
# Development deps (unittest, linting, formating,...)
# Development deps (unittest, linting, formatting,...)
# Installed through `pip install -e .[dev]`
dev = [
"pytest",
Expand Down