Skip to content

fix enable_cache #4109

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 7, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Next Next commit
fix enable_cache
  • Loading branch information
Jintao-Huang committed May 7, 2025
commit d41e8c889187f7dc9add03b6330b33799ccc37ae
7 changes: 5 additions & 2 deletions requirements/framework.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@ binpacking
charset_normalizer
cpm_kernels
dacite
datasets>=3.0
datasets>=3.0,<3.4
einops
fastapi
gradio>=3.40.0
importlib_metadata
jieba
matplotlib
modelscope[datasets]>=1.23
modelscope>=1.23
nltk
numpy<2.0
openai
Expand All @@ -24,7 +24,10 @@ pillow
requests
rouge
safetensors
scipy
sentencepiece
simplejson>=3.3.0
sortedcontainers>=1.5.9
tensorboard
tiktoken
tqdm
Expand Down
2 changes: 1 addition & 1 deletion swift/llm/dataset/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def update_fingerprint(fingerprint, transform, transform_args):
function = inspect.getsource(transform_args['function'].__self__.__class__)
else:
function = inspect.getsource(transform_args['function'])
transform_args['function'] = function
transform_args['function'] = (transform_args['function'], function)
return update_fingerprint_origin(fingerprint, transform, transform_args)


Expand Down
2 changes: 1 addition & 1 deletion swift/llm/dataset/preprocessor/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def __init__(self,
*,
columns: Optional[Dict[str, str]] = None,
dataset_sample: Optional[int] = None,
random_state: Union[np.random.RandomState, int, None] = None,
random_state: Union[np.random.RandomState, int, None] = 42,
traceback_limit: int = 10) -> None:
self.columns = columns or {}
self.origin_columns = self.columns.copy() # Higher priority and raise Error
Expand Down