Personal ToolBox
Project description
Jammy (Jam)
A personal toolbox by Qsh.zh.
Usage
setup
- For core package, run
pip install jammy
- To access functions in
bin
git clone https://gitlab.com/qsh.zh/jam.git --recursive
export PATH=<path_to_jam>/bin:$PATH
# run python program
jam-run main.py
jam-crun 1 main.py # use second nvidia gpu
sample of io
import jammy.io as jio
from jamtorch.utils import as_numpy
jio.dump("ndarray.npz", np.arange(10))
jio.dump("foo.pkl", {"foo": as_numpy(torch.arange(10).cuda())})
ndarray = jio.load("ndarray.npz")
jio.load("foo.pkl")
model_dict = jio.load("checkpoint.pth")
$ jam-inspect-file foo.pkl
> python3
[ins] print(f1)
# content of foo.pkl
Advanced Usage
Etymology
MICS
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
jammy-0.0.7a9.tar.gz
(106.2 kB
view details)
Built Distribution
jammy-0.0.7a9-py3-none-any.whl
(148.4 kB
view details)
File details
Details for the file jammy-0.0.7a9.tar.gz
.
File metadata
- Download URL: jammy-0.0.7a9.tar.gz
- Upload date:
- Size: 106.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1701203103873da209e810b0f3a78275557520dd8614e0e5eea527dd87f6965c |
|
MD5 | b83cd3c2584875199b46f0425d88c0e6 |
|
BLAKE2b-256 | c863d8a9e0bdc1348757469c55f9b00a59ba844ad1699f02ccaf75542d18faa3 |
Provenance
File details
Details for the file jammy-0.0.7a9-py3-none-any.whl
.
File metadata
- Download URL: jammy-0.0.7a9-py3-none-any.whl
- Upload date:
- Size: 148.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.8.10 Linux/5.13.0-28-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9fdb92adf7c21b42744e27e4ae426b3ac2449b12fa9b6355d49b51e4baa359b |
|
MD5 | c6eec393246f215b59cc5edd31dbd2dd |
|
BLAKE2b-256 | 0d692e9aeaaf657d0fafbb183fb2149d0b684d7d4bc47cc205d12f61af9b1d22 |