Ba2han commited on
Commit
48d82c0
·
verified ·
1 Parent(s): 6c6defd

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +63 -4
README.md CHANGED
@@ -1,5 +1,5 @@
1
  ---
2
- base_model: tr-sft/checkpoint-2398
3
  tags:
4
  - text-generation-inference
5
  - transformers
@@ -9,15 +9,74 @@ tags:
9
  - sft
10
  license: apache-2.0
11
  language:
12
- - en
13
  ---
14
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  # Uploaded model
16
 
17
  - **Developed by:** Ba2han
18
  - **License:** apache-2.0
19
- - **Finetuned from model :** tr-sft/checkpoint-2398
20
 
21
  This lfm2_vl model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
22
 
23
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
1
  ---
2
+ base_model: LiquidAI/LFM2.5-VL-1.6B
3
  tags:
4
  - text-generation-inference
5
  - transformers
 
9
  - sft
10
  license: apache-2.0
11
  language:
12
+ - tr
13
  ---
14
 
15
+ ## Example Script/Örnek Script
16
+
17
+ ```python
18
+ from transformers import pipeline
19
+
20
+ # ── Config ──
21
+ model_name = "Ba2han/Liquid-Turkish-MiniOCR-V0.2"
22
+ image_url = "https://gezivita.com/wp-content/uploads/2017/10/Atat%C3%BCrk-diyor-ki.jpg"
23
+
24
+ # ── Pipeline ──
25
+ pipe = pipeline("image-text-to-text", model=model_name)
26
+
27
+ messages = [{"role": "user", "content": [
28
+ {"type": "image", "url": image_url},
29
+ {"type": "text", "text": "Görev: Türkçe OCR"},
30
+ ]}]
31
+
32
+ result = pipe(text=messages, max_new_tokens=500, return_full_text=False,
33
+ do_sample=True, temperature=0.3, top_k=10, min_p=0.2,
34
+ repetition_penalty=1.05)
35
+
36
+ print(result[0]["generated_text"])
37
+
38
+ ```
39
+
40
+ ## Result/Sonuç
41
+
42
+ ```markdown
43
+ CUMHURİYET
44
+
45
+ Cumhuriyet ahlâkî fazilete müstenit bir idaredir. Cumhuriyet fazilettir. Sultanlık korku ve tehdide müstenit bir idaredir. Cumhuriyet idaresi faziletti ve namuskâr insanlar yetiştirir, sultanlık korkuya, tehdide müstenit olduğu için korkak, zelil, sefil, rezil insanlar yetiştirir. (14 Ekim 1925)
46
+
47
+ Şuur daima ileriye ve yeniliğe götürür, dönüşsüz bir haslet olduğuna göre, Türkiye Cumhuriyeti halkı, ileriye ve yeniliğe uzun adımlarla yürümeye devam edecektir. (1.9.1925)
48
+
49
+ Memnuniyetle tekrar görüyorum ki, Lâik Cumhuriyet esasında beraberiz. Zaten benim siyasi hayatta bir taraflı olarak daima aradığım ve arıyacağım temel budur. (11.3.1930)
50
+
51
+ Benim naçiz vücudum elbet birgün toprak olacaktır. Fakat Türkiye Cumhuriyeti ilelebet pâyidâr kalacaktır. (Mayıs 1929)
52
+
53
+ Türk Milletinin tabiat ve şiârına en mutabık (uygun) olan idare Cumhuriyet idaresidir. (1924)
54
+
55
+ ```
56
+
57
+ ## Usage/Kullanım
58
+
59
+ ```
60
+ Görevin, sana verilen sayfadaki tüm içeriği eğitim materyali standartlarına uygun, eksiksiz ve dijital olarak okunabilir bir metne dönüştürmektir.
61
+
62
+ ```
63
+
64
+ ```
65
+ Görev: Türkçe OCR
66
+
67
+ ```
68
+
69
+ ```
70
+ Türkçe dilindeki sayfayı transkribe et. Formatı korumak adına markdown kullan.
71
+
72
+ ```
73
+
74
  # Uploaded model
75
 
76
  - **Developed by:** Ba2han
77
  - **License:** apache-2.0
78
+ - **Finetuned from model :** LiquidAI/LFM2.5-VL-1.6B
79
 
80
  This lfm2_vl model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth)
81
 
82
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)