zgrgr commited on
Commit
53fbb0e
1 Parent(s): 0045592

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +176 -0
README.md CHANGED
@@ -9,6 +9,182 @@ pipeline_tag: text-generation
9
  ## Model Description
10
  This is a fine-tuned version of Meta-llama-3B for Turkish instructions.
11
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  ## License
13
  This model is licensed under Apache-2.0, which means it can be used freely for both commercial and non-commercial purposes.
14
  ```
 
9
  ## Model Description
10
  This is a fine-tuned version of Meta-llama-3B for Turkish instructions.
11
 
12
+ ```markdown
13
+ # Murşit Chatbot
14
+
15
+ Welcome to the Murşit Chatbot! Murşit is a sophisticated conversational AI model based on the `zgrgr/Meta_llama-3-8B-Instruct` architecture. It’s designed to provide insightful and informative responses to user queries in both Turkish and English.
16
+
17
+ ## Features
18
+
19
+ - **Language Support**: Murşit can converse in both Turkish and English.
20
+ - **Intelligent Responses**: Provides detailed answers to questions about various topics.
21
+
22
+ ## Usage
23
+
24
+ ### Setup
25
+
26
+ To use the Murşit chatbot, you'll need to install the necessary Python libraries. You can do this by running:
27
+
28
+ ```bash
29
+ pip install -qU transformers bitsandbytes accelerate
30
+ ```
31
+
32
+ ### Example Usage
33
+
34
+ Here’s how you can interact with Murşit:
35
+
36
+ ```python
37
+ import transformers
38
+ import torch
39
+
40
+ model_id = "zgrgr/Meta_llama-3-8B-Instruct"
41
+
42
+ pipeline = transformers.pipeline(
43
+ "text-generation",
44
+ model=model_id,
45
+ model_kwargs={"torch_dtype": torch.bfloat16, "load_in_8bit": True},
46
+ device_map="auto",
47
+ )
48
+
49
+ # For English
50
+ messages = [
51
+ {"role": "system", "content": "You are a helpful chatbot named Murşit who always responds with detailed and accurate information."},
52
+ {"role": "user", "content": "What is the law offices structure about in the US?"}
53
+ ]
54
+
55
+ # For Turkish
56
+ messages = [
57
+ {"role": "system", "content": "Sen, Murşit isimli Türkçe konuşan bir chatbotsun."},
58
+ {"role": "user", "content": "Türkiyedeki baro yapılanması nasıldır?"}
59
+ ]
60
+
61
+ outputs = pipeline(
62
+ messages,
63
+ max_new_tokens=1024,
64
+ do_sample=True,
65
+ temperature=0.5,
66
+ top_p=0.5,
67
+ top_k=100,
68
+ )
69
+
70
+ print(outputs[0]["generated_text"][-1]["content"])
71
+ ```
72
+
73
+ ### Questions & Answers
74
+
75
+ **Turkish Query**: "Türkiyedeki baro yapılanması nasıldır?"
76
+
77
+ - Merhaba! Baro yapılanması, Türkiye'deki avukatlık mesleğinin örgütlenmesini ifade eder. Türkiye'de barolar, avukatların mesleki örgütlenmesini ve faaliyetlerini düzenleyen kuruluşlardır.
78
+
79
+ Türkiye'de, barolar 1932 yılında kurulan Türkiye Barolar Birliği (TBB) altında toplanmıştır. TBB, avukatların mesleki haklarını savunmak, mesleki eğitim ve öğretimi geliştirmek, avukatların mesleki örgütlenmesini sağlamak ve kamuoyunu bilgilendirmek gibi amaçlar doğrultusunda faaliyet gösterir.
80
+
81
+ Her baro, kendi üyelerinin haklarını savunmak, mesleki eğitim ve öğretimi geliştirmek, kamuoyunu bilgilendirmek ve diğer barolarla işbirliği yapmak gibi amaçlar doğrultusunda faaliyet gösterir. Barolar, ayrıca mahkemelerde avukatların temsilciliklerini de sağlar.
82
+
83
+ Türkiye'deki barolar, aşağıdaki gibi sınıflandırılır:
84
+
85
+ * Ankara Barosu
86
+ * Adana Barosu
87
+ * Adıyaman Barosu
88
+ * Afyonkarahisar Barosu
89
+ * Ağrı Barosu
90
+ * Amasya Barosu
91
+ * Antalya Barosu
92
+ * Ardahan Barosu
93
+ * Artvin Barosu
94
+ * Aydın Barosu
95
+ * Balıkesir Barosu
96
+ * Bilecik Barosu
97
+ * Bingöl Barosu
98
+ * Bitlis Barosu
99
+ * Bolu Barosu
100
+ * Burdur Barosu
101
+ * Bursa Barosu
102
+ * Çanakkale Barosu
103
+ * Çankırı Barosu
104
+ * Çorum Barosu
105
+ * Denizli Barosu
106
+ * Diyarbakır Barosu
107
+ * Edirne Barosu
108
+ * Elazığ Barosu
109
+ * Erzincan Barosu
110
+ * Erzurum Barosu
111
+ * Eskişehir Barosu
112
+ * Gaziantep Barosu
113
+ * Giresun Barosu
114
+ * Hatay Barosu
115
+ * İçel Barosu
116
+ * Iğdır Barosu
117
+ * İstanbul Barosu
118
+ * İzmir Barosu
119
+ * Kahramanmaraş Barosu
120
+ * Karabük Barosu
121
+ * Karaman Barosu
122
+ * Kars Barosu
123
+ * Kastamonu Barosu
124
+ * Kayseri Barosu
125
+ * Kırıkkale Barosu
126
+ * Kırşehir Barosu
127
+ * Kocaeli Barosu
128
+ * Konya Barosu
129
+ * Kütahya Barosu
130
+ * Malatya Barosu
131
+ * Manisa Barosu
132
+ * Mardin Barosu
133
+ * Mersin Barosu
134
+ * Muğla Barosu
135
+ * Muş Barosu
136
+ * Nevşehir Barosu
137
+ * Niğde Barosu
138
+ * Ordu Barosu
139
+ * Osmaniye Barosu
140
+ * Rize Barosu
141
+ * Sakarya Barosu
142
+ * Samsun Barosu
143
+ * Şanlıurfa Barosu
144
+ * Siirt Barosu
145
+ * Sivas Barosu
146
+ * Tekirdağ Barosu
147
+ * Tokat Barosu
148
+ * Trabzon Barosu
149
+ * Tunceli Barosu
150
+ * Uşak Barosu
151
+ * Van Barosu
152
+ * Yalova Barosu
153
+ * Yozgat Barosu
154
+ * Zonguldak Barosu
155
+
156
+ Bu barolar, Türkiye'deki avukatların örgütlenmesini ve faaliyetlerini düzenlemektedir.
157
+
158
+ **English Query**: "What is the law offices structure about in the US?"
159
+
160
+ - 1. Law Firms:
161
+ * Large law firms: These firms have multiple offices, hundreds of attorneys, and a diverse range of practice areas. Examples include Baker McKenzie, DLA Piper, and Latham & Watkins.
162
+ * Mid-sized law firms: These firms have multiple offices, dozens of attorneys, and a focus on specific practice areas. Examples include Foley & Lardner and Quarles & Brady.
163
+ * Small law firms: These firms have a single office, fewer than 20 attorneys, and often specialize in a specific area of law. Examples include solo practitioners or small firms with 2-5 attorneys.
164
+ 2. Practice Groups:
165
+ * Within law firms, attorneys are often organized into practice groups or departments, which focus on specific areas of law, such as:
166
+ + Litigation (e.g., intellectual property, employment, or commercial litigation)
167
+ + Corporate (e.g., mergers and acquisitions, securities, or tax)
168
+ + Intellectual Property (e.g., patent, trademark, or copyright)
169
+ + Real Estate
170
+ + Family Law
171
+ 3. Attorney Levels:
172
+ * Partners: Senior attorneys who own equity in the firm and are responsible for generating revenue. Partners often have a significant say in firm decision-making.
173
+ * Of Counsel: Experienced attorneys who are not partners but still contribute to the firm's expertise and revenue.
174
+ * Associates: Junior attorneys who are still developing their skills and are often responsible for supporting partners and of counsel.
175
+ * Paralegals: Non-attorney legal professionals who assist attorneys with research, document preparation, and other tasks.
176
+ 4. Firm Leadership:
177
+ * Managing Partners: The highest-ranking attorney in a law firm, responsible for overall strategy, management, and decision-making.
178
+ * Practice Group Leaders: Senior attorneys who lead specific practice groups or departments within the firm.
179
+ * Department Chairs: Attorneys who oversee specific departments or areas of practice within the firm.
180
+ 5. Support Staff:
181
+ * Administrative Assistants: Non-attorney staff who provide administrative support to attorneys, including scheduling, document preparation, and communication.
182
+ * Legal Assistants: Non-attorney staff who assist attorneys with legal research, document preparation, and other tasks.
183
+ * IT and Operations Staff: Professionals who manage the firm's technology, infrastructure, and operations.
184
+
185
+ Keep in mind that this is a general outline, and the specific structure of a law office can vary depending on the firm's size, type, and practice areas.
186
+ ```
187
+
188
  ## License
189
  This model is licensed under Apache-2.0, which means it can be used freely for both commercial and non-commercial purposes.
190
  ```