Skip to main content

livecc-utils

LiveCC Utils is a supplement to qwen-vl-utils, which contains a set of helper functions for processing and integrating visual language information with LiveCC Model.

Install

pip install qwen-vl-utils livecc-utils

Feature

Decord Video Reader Plus

Compared to _read_video_decord in qwen-vl-utils, we provide _read_video_decord_plus that can handle video with video_start, video_end, and support both smart nframe and strict fps. Please refer to src/livecc_utils/video_process_patch.py

Usage

Easy. Just put the import of livecc-utils before qwen_vl_utils.

import livecc_utils
from qwen_vl_utils import ...

Easy KV Cache for Multi-turn

Original Qwen2VL has some bugs during multi-turn conversation with past_key_values. We provide a patch prepare_multiturn_multimodal_inputs_for_generation at src/livecc_utils/generation_patch.py. During inference, using model.prepare_inputs_for_generation = functools.partial(prepare_multiturn_multimodal_inputs_for_generation, model) then do faster inference with past_key_values!

Usage

Easy. Just let model.prepare_inputs_for_generation = functools.partial(prepare_multiturn_multimodal_inputs_for_generation, model).

Metadata

Release files for livecc-utils 0.0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livecc-utils 0.0.2
File Size Uploaded Provenance Actions
livecc_utils-0.0.2.tar.gz 4.6 kB Without provenance Details for livecc_utils-0.0.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for livecc-utils 0.0.2
File Interpreter ABI Platform Actions
livecc_utils-0.0.2-py3-none-any.whl Python 3 none any Details for livecc_utils-0.0.2-py3-none-any.whl

Total release size: 9.7 kB

Release files / livecc_utils-0.0.2.tar.gz

Download URL livecc_utils-0.0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
eb98ee173948276d1f55b1ea6793bc5b5ffb027a3d84875b2c634887073b76cb
BLAKE2b-256 checksum
How to use checksums
caa089c5c92bd3a825905304f66afdc60867e3c452b2061383822c38d1af54fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Release files / livecc_utils-0.0.2-py3-none-any.whl

Download URL livecc_utils-0.0.2-py3-none-any.whl
Size 5.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d9fc0d1e28b45778dc79d5aad4603e3e4d06572c6a778b98f6091eb363a61233
BLAKE2b-256 checksum
How to use checksums
d2bf4e8d0eb15c6b1d34ae0cc2eb1444f66776506b8d80d223a0e5d6dcd02f80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.2

Security for livecc-utils 0.0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page