Skip to content

WilliamBy/llm_utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-study

Dynamic TOML Badge PyPI - Version

Practical toolkit for LLM studies


Installation

PyPi

To install LLM Toolset, ensure you have Python 3.9 or higher installed, then run the following command:

pip install llm-study

Source

pip install -e .

(Optional) Install transformers from source:

pushd transformers
git fetch --tags && git checkout v4.47.1
popd

Dependencies

LLM Toolset depends on the following libraries:

  • transformers (version >= 4.47.1)

Example: kvcache calculator

kv_calc.py provides basic key-value calculation functionalities.

from llm_toolset.kv_calc import calculate_key_value

result = calculate_key_value(data)

or use in shell

$ python -m llm_study.kv_calc -h

Links

About

Practical tool scripts for large language model study work.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages