Video-Text-to-Text
Transformers
Safetensors
MLX
English
qwen2_5_vl
image-text-to-text
video-grounding
temporal-grounding
video-understanding
qwen2-vl
mlx-my-repo
text-generation-inference
4-bit precision
Instructions to use JungleGym/TimeLens-7B-mlx-4Bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JungleGym/TimeLens-7B-mlx-4Bit with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("JungleGym/TimeLens-7B-mlx-4Bit") model = AutoModelForMultimodalLM.from_pretrained("JungleGym/TimeLens-7B-mlx-4Bit", device_map="auto") - MLX
How to use JungleGym/TimeLens-7B-mlx-4Bit with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir TimeLens-7B-mlx-4Bit JungleGym/TimeLens-7B-mlx-4Bit
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
metadata
license: other
license_name: bsd-3-clause
license_link: https://github.com/TencentARC/TimeLens/blob/main/LICENSE
language:
- en
tags:
- video-grounding
- temporal-grounding
- video-understanding
- qwen2-vl
- mlx
- mlx-my-repo
library_name: transformers
pipeline_tag: video-text-to-text
datasets:
- TencentARC/TimeLens-100K
- TencentARC/TimeLens-Bench
base_model: TencentARC/TimeLens-7B
JungleGym/TimeLens-7B-mlx-4Bit
The Model JungleGym/TimeLens-7B-mlx-4Bit was converted to MLX format from TencentARC/TimeLens-7B using mlx-lm version 0.28.3.
Use with mlx
pip install mlx-lm
from mlx_lm import load, generate
model, tokenizer = load("JungleGym/TimeLens-7B-mlx-4Bit")
prompt="hello"
if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
messages = [{"role": "user", "content": prompt}]
prompt = tokenizer.apply_chat_template(
messages, tokenize=False, add_generation_prompt=True
)
response = generate(model, tokenizer, prompt=prompt, verbose=True)