Skip to content
Merged
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
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,26 @@ authors = [
]
readme = "README.md"
requires-python = ">=3.12"

keywords = ["transformer", "language-model", "deep-learning", "pytorch", "gpt", "tokenizer"]

classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Development Status :: 3 - Alpha", # or 4 - Beta, 5 - Production/Stable
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
]
license = {file = "LICENSE"}

dependencies = [
"numpy>=2.3.2",
"ptflops>=0.7.5",
"pydantic-settings>=2.10.1",
"pydantic-yaml>=1.6.0",
"tiktoken>=0.11.0",
"torch>=2.8.0",
"tqdm>=4.67.1",
"types-tqdm>=4.67.0.20250809",
Expand Down Expand Up @@ -93,4 +101,3 @@ build-backend = "hatchling.build"
[project.scripts]
train = "scratchgpt.train:main"
infer = "scratchgpt.infer:main"
tiktoken = "scratchgpt.tokenizer.tiktoken:main"
4 changes: 0 additions & 4 deletions scratchgpt/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
TokenizerLoadFailedError,
get_best_model_weights_path,
get_latest_model_weights_path,
get_tokenizer,
get_tokenizer_path,
load_model,
load_tokenizer,
Expand All @@ -33,7 +32,6 @@
)
from scratchgpt.tokenizer.char_tokenizer import CharTokenizer, Utf8Tokenizer
from scratchgpt.tokenizer.hf_tokenizer import HuggingFaceTokenizer
from scratchgpt.tokenizer.tiktoken import TiktokenWrapper
from scratchgpt.training.trainer import Trainer, get_dtype_for_vocab_size

__all__ = [
Expand All @@ -52,7 +50,6 @@
"load_model",
"load_tokenizer",
"save_tokenizer",
"get_tokenizer",
"get_best_model_weights_path",
"get_latest_model_weights_path",
"get_tokenizer_path",
Expand All @@ -65,7 +62,6 @@
"CharTokenizer",
"Utf8Tokenizer",
"HuggingFaceTokenizer",
"TiktokenWrapper",
# Training
"Trainer",
"get_dtype_for_vocab_size",
Expand Down
77 changes: 0 additions & 77 deletions scratchgpt/tokenizer/tiktoken.py

This file was deleted.

Loading