Skip to content

Commit

Permalink
[CHORES]
Browse files Browse the repository at this point in the history
  • Loading branch information
Kye committed Dec 7, 2023
1 parent 9831ba0 commit 0ce0b51
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions example.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import torch
from gemini_torch.model import Gemini
import torch
from gemini_torch import Gemini

# Initialize the model
model = Gemini(
num_tokens=50432,
max_seq_len=8192,
Expand All @@ -19,7 +20,11 @@
attn_qk_norm_dim_scale=True,
)

# Initialize the text random tokens
x = torch.randint(0, 50432, (1, 8192))

# Apply model to x
y = model(x)
print(y)

# Print logits
print(y)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"

[tool.poetry]
name = "gemini-torch"
version = "0.0.5"
version = "0.0.6"
description = "Gemini - Pytorch"
license = "MIT"
authors = ["Kye Gomez <[email protected]>"]
Expand Down

0 comments on commit 0ce0b51

Please sign in to comment.