IMvision12 commited on
Commit
96a2bd3
·
verified ·
1 Parent(s): 73916fa

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +73 -7
README.md CHANGED
@@ -1,10 +1,76 @@
1
  ---
2
- title: README
3
- emoji: 👁
4
- colorFrom: gray
5
- colorTo: red
6
- sdk: static
7
- pinned: false
8
  ---
9
 
10
- Edit this `README.md` markdown file to author your organization card.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ tags:
3
+ - keras
4
+ - kerasformers
5
+ - jax
6
+ - pytorch
7
+ - tensorflow
8
  ---
9
 
10
+ <div align="center">
11
+
12
+ # KerasFormers
13
+
14
+ **Pretrained transformers in pure Keras 3. One implementation, runs on JAX, PyTorch, and TensorFlow.**
15
+
16
+ [![GitHub](https://img.shields.io/badge/GitHub-KerasFormers-181717?logo=github)](https://github.com/IMvision12/KerasFormers)
17
+ [![Docs](https://img.shields.io/badge/Docs-Website-4a9eff)](https://imvision12.github.io/KerasFormers/)
18
+ [![Keras 3](https://img.shields.io/badge/Built%20with-Keras%203-d00000?logo=keras)](https://keras.io)
19
+
20
+ </div>
21
+
22
+ ---
23
+
24
+ This organization hosts **pre-converted Keras 3 weights** for
25
+ [kerasformers](https://github.com/IMvision12/KerasFormers). Each repo holds the converted
26
+ model plus its tokenizer and config files, so you download once and load directly, no
27
+ on-the-fly conversion, no `transformers` or `torch` runtime on the model path.
28
+
29
+ Every model is a pure-Keras port that runs **unchanged on all three backends**. Set
30
+ `KERAS_BACKEND` before importing Keras and the same code runs on JAX, PyTorch, or
31
+ TensorFlow.
32
+
33
+ ## Quick start
34
+
35
+ ```bash
36
+ pip install kerasformers
37
+ ```
38
+
39
+ ```python
40
+ import os
41
+ os.environ["KERAS_BACKEND"] = "torch" # or "jax" / "tensorflow"
42
+
43
+ from kerasformers.models.qwen3 import Qwen3Generate, Qwen3Tokenizer
44
+
45
+ model = Qwen3Generate.from_weights("qwen3-8b")
46
+ tokenizer = Qwen3Tokenizer.from_weights("qwen3-8b")
47
+
48
+ inputs = tokenizer("The capital of France is")
49
+ output = model.generate(**inputs, max_new_tokens=20)
50
+ print(tokenizer.decode(output[0]))
51
+ ```
52
+
53
+ ## What's here
54
+
55
+ Language, vision, audio, and multimodal models, all pure Keras 3:
56
+
57
+ | Type | Examples |
58
+ |---|---|
59
+ | **Text** | Qwen, Llama, Gemma, Mistral, Mixtral, DeepSeek, GLM, GPT |
60
+ | **Vision** | ViT, DINOv3, DETR, SegFormer, SAM, Depth Anything |
61
+ | **Audio** | Whisper, Moonshine, Speech2Text, Granite Speech |
62
+ | **Multimodal** | Qwen-VL, InternVL, CLIP, SigLIP, Gemma 3 |
63
+
64
+ Browse the models on this page, or see the full catalog in the
65
+ [documentation](https://imvision12.github.io/KerasFormers/).
66
+
67
+ ## Links
68
+
69
+ - **Library**: [github.com/IMvision12/KerasFormers](https://github.com/IMvision12/KerasFormers)
70
+ - **Documentation**: [imvision12.github.io/KerasFormers](https://imvision12.github.io/KerasFormers/)
71
+
72
+ ## License
73
+
74
+ Each model repo carries the license of its source model. The weights here are format
75
+ conversions of the original checkpoints; using them requires complying with the upstream
76
+ license (Apache 2.0, Llama Community License, Gemma Terms, and so on).