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
Instructions to use JungleGym/TimeLens-7B-mlx-fp16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use JungleGym/TimeLens-7B-mlx-fp16 with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("JungleGym/TimeLens-7B-mlx-fp16") model = AutoModelForMultimodalLM.from_pretrained("JungleGym/TimeLens-7B-mlx-fp16", device_map="auto") - MLX
How to use JungleGym/TimeLens-7B-mlx-fp16 with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] hf download JungleGym/TimeLens-7B-mlx-fp16 --local-dir TimeLens-7B-mlx-fp16
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
|
Download README.md from JungleGym/TimeLens-7B-mlx-fp16: direct link, hf CLI and curl.
- Browser
- Download file 1.16 kB
-
https://huggingface.co/JungleGym/TimeLens-7B-mlx-fp16/resolve/main/README.md
- Command line
-
hf download hf://JungleGym/TimeLens-7B-mlx-fp16/README.md
-
curl -L -o README.md https://huggingface.co/JungleGym/TimeLens-7B-mlx-fp16/resolve/main/README.md
1.16 kB
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-fp16
The Model JungleGym/TimeLens-7B-mlx-fp16 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-fp16")
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)