Skip to content

Commit

Permalink
fix bugs, remove text-utils-grammar and text-utils-prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiscode committed Nov 22, 2024
1 parent 1bf0d76 commit b6e14f6
Show file tree
Hide file tree
Showing 66 changed files with 58,108 additions and 139,537 deletions.
6 changes: 2 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
publish = false
name = "text-utils-rs"
name = "text-utils"
version = "0.6.0"
edition = "2021"

Expand All @@ -13,7 +13,7 @@ log = "0.4"
env_logger = "0.11"
rayon = "1.8"
indicatif = { version = "0.17", features = ["rayon"] }
pyo3 = { version = "0.22", features = ["anyhow", "extension-module", "abi3-py310", "auto-initialize", "macros"] }
pyo3 = { version = "0.22", features = ["anyhow", "extension-module", "abi3-py310", "auto-initialize"]}
itertools = "0.13"
rand = "0.8"
rand_distr = "0.4"
Expand All @@ -30,8 +30,6 @@ num_cpus = "1.14"
numpy = "0.22"
clap = { version = "4", features = ["derive"] }
tokenizers = "0.20"
text-utils-prefix = { path = "text-utils-prefix" }
text-utils-grammar = { path = "text-utils-grammar" }
lru = "0.12"

[dev-dependencies]
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ dependencies = [
"tensorboard>=2.16.0",
"flask>=3.0",
"requests>=2.31",
"termcolor>=2.4.0"
"termcolor>=2.4.0",
"grammar-utils>=0.1.0"
]

[project.scripts]
Expand Down
12 changes: 1 addition & 11 deletions python/text_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,5 @@
windows,
metrics,
unicode,
continuations,
grammar
)
from text_utils import (
api,
inference,
modules,
logging,
distributed,
mask,
io
)
from text_utils import api, inference, modules, logging, distributed, mask, io
2 changes: 1 addition & 1 deletion python/text_utils/api/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -921,7 +921,7 @@ def train_slurm(cls, work_dir: str, experiment_dir: str, config_path: str):

@classmethod
def train_local(
cls, work_dir: str, experiment_dir: str, config_path: str, profile: bool
cls, work_dir: str, experiment_dir: str, config_path: str, profile: bool = False
):
logging.setup_logging()
logger = logging.get_logger("LOCAL_INITIALIZATION")
Expand Down
160 changes: 0 additions & 160 deletions python/text_utils/constraints.py

This file was deleted.

Loading

0 comments on commit b6e14f6

Please sign in to comment.