JungleGym commited on
Commit
4272304
·
verified ·
1 Parent(s): 99ac04b

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ license_name: bsd-3-clause
4
+ license_link: https://github.com/TencentARC/TimeLens/blob/main/LICENSE
5
+ language:
6
+ - en
7
+ tags:
8
+ - video-grounding
9
+ - temporal-grounding
10
+ - video-understanding
11
+ - qwen2-vl
12
+ - mlx
13
+ - mlx-my-repo
14
+ library_name: transformers
15
+ pipeline_tag: video-text-to-text
16
+ datasets:
17
+ - TencentARC/TimeLens-100K
18
+ - TencentARC/TimeLens-Bench
19
+ base_model: TencentARC/TimeLens-7B
20
+ ---
21
+
22
+ # JungleGym/TimeLens-7B-mlx-4Bit
23
+
24
+ The Model [JungleGym/TimeLens-7B-mlx-4Bit](https://huggingface.co/JungleGym/TimeLens-7B-mlx-4Bit) was converted to MLX format from [TencentARC/TimeLens-7B](https://huggingface.co/TencentARC/TimeLens-7B) using mlx-lm version **0.28.3**.
25
+
26
+ ## Use with mlx
27
+
28
+ ```bash
29
+ pip install mlx-lm
30
+ ```
31
+
32
+ ```python
33
+ from mlx_lm import load, generate
34
+
35
+ model, tokenizer = load("JungleGym/TimeLens-7B-mlx-4Bit")
36
+
37
+ prompt="hello"
38
+
39
+ if hasattr(tokenizer, "apply_chat_template") and tokenizer.chat_template is not None:
40
+ messages = [{"role": "user", "content": prompt}]
41
+ prompt = tokenizer.apply_chat_template(
42
+ messages, tokenize=False, add_generation_prompt=True
43
+ )
44
+
45
+ response = generate(model, tokenizer, prompt=prompt, verbose=True)
46
+ ```