File size: 6,832 Bytes
6665e31
 
 
 
 
 
 
 
 
 
 
53fbb0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5a81dd8
 
53fbb0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5a81dd8
53fbb0e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6665e31
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
---
license: apache-2.0
base_model: meta-llama/Meta-Llama-3.1-8B-Instruct
pipeline_tag: text-generation
---

# Meta_llama-3-8B-Instruct

## Model Description
This is a fine-tuned version of Meta-llama-3B for Turkish instructions.

```markdown
# Murşit Chatbot

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.

## Features

- **Language Support**: Murşit can converse in both Turkish and English.
- **Intelligent Responses**: Provides detailed answers to questions about various topics.

## Usage

### Setup

To use the Murşit chatbot, you'll need to install the necessary Python libraries. You can do this by running:

```bash
pip install -qU transformers bitsandbytes accelerate
```

### Example Usage

Here’s how you can interact with Murşit:

```python
import transformers
import torch

model_id = "zgrgr/Meta_llama-3-8B-Instruct"

pipeline = transformers.pipeline(
    "text-generation",
    model=model_id,
    model_kwargs={"torch_dtype": torch.bfloat16, "load_in_8bit": True},
    device_map="auto",
)

# For English
messages = [
    {"role": "system", "content": "You are a helpful chatbot named Murşit who always responds with detailed and accurate information."},
    {"role": "user", "content": "What is the law offices structure about in the US?"}
]

# For Turkish
messages = [
    {"role": "system", "content": "Sen, Murşit isimli Türkçe konuşan bir chatbotsun."},
    {"role": "user", "content": "Türkiyedeki baro yapılanması nasıldır?"}
]

outputs = pipeline(
    messages,
    max_new_tokens=1024,
    do_sample=True,
    temperature=0.5,
    top_p=0.5,
    top_k=100,
)

print(outputs[0]["generated_text"][-1]["content"])
```

### Questions & Answers

**Turkish Query**: "Türkiyedeki baro yapılanması nasıldır?"

**Turkish Answer**: 

- 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.

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.

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.

Türkiye'deki barolar, aşağıdaki gibi sınıflandırılır:

* Ankara Barosu
* Adana Barosu
* Adıyaman Barosu
* Afyonkarahisar Barosu
* Ağrı Barosu
* Amasya Barosu
* Antalya Barosu
* Ardahan Barosu
* Artvin Barosu
* Aydın Barosu
* Balıkesir Barosu
* Bilecik Barosu
* Bingöl Barosu
* Bitlis Barosu
* Bolu Barosu
* Burdur Barosu
* Bursa Barosu
* Çanakkale Barosu
* Çankırı Barosu
* Çorum Barosu
* Denizli Barosu
* Diyarbakır Barosu
* Edirne Barosu
* Elazığ Barosu
* Erzincan Barosu
* Erzurum Barosu
* Eskişehir Barosu
* Gaziantep Barosu
* Giresun Barosu
* Hatay Barosu
* İçel Barosu
* Iğdır Barosu
* İstanbul Barosu
* İzmir Barosu
* Kahramanmaraş Barosu
* Karabük Barosu
* Karaman Barosu
* Kars Barosu
* Kastamonu Barosu
* Kayseri Barosu
* Kırıkkale Barosu
* Kırşehir Barosu
* Kocaeli Barosu
* Konya Barosu
* Kütahya Barosu
* Malatya Barosu
* Manisa Barosu
* Mardin Barosu
* Mersin Barosu
* Muğla Barosu
* Muş Barosu
* Nevşehir Barosu
* Niğde Barosu
* Ordu Barosu
* Osmaniye Barosu
* Rize Barosu
* Sakarya Barosu
* Samsun Barosu
* Şanlıurfa Barosu
* Siirt Barosu
* Sivas Barosu
* Tekirdağ Barosu
* Tokat Barosu
* Trabzon Barosu
* Tunceli Barosu
* Uşak Barosu
* Van Barosu
* Yalova Barosu
* Yozgat Barosu
* Zonguldak Barosu

Bu barolar, Türkiye'deki avukatların örgütlenmesini ve faaliyetlerini düzenlemektedir.

**English Query**: "What is the law offices structure about in the US?"

**English Answer**:
- 1. Law Firms:
	* 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.
	* 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.
	* 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.
2. Practice Groups:
	* Within law firms, attorneys are often organized into practice groups or departments, which focus on specific areas of law, such as:
		+ Litigation (e.g., intellectual property, employment, or commercial litigation)
		+ Corporate (e.g., mergers and acquisitions, securities, or tax)
		+ Intellectual Property (e.g., patent, trademark, or copyright)
		+ Real Estate
		+ Family Law
3. Attorney Levels:
	* 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.
	* Of Counsel: Experienced attorneys who are not partners but still contribute to the firm's expertise and revenue.
	* Associates: Junior attorneys who are still developing their skills and are often responsible for supporting partners and of counsel.
	* Paralegals: Non-attorney legal professionals who assist attorneys with research, document preparation, and other tasks.
4. Firm Leadership:
	* Managing Partners: The highest-ranking attorney in a law firm, responsible for overall strategy, management, and decision-making.
	* Practice Group Leaders: Senior attorneys who lead specific practice groups or departments within the firm.
	* Department Chairs: Attorneys who oversee specific departments or areas of practice within the firm.
5. Support Staff:
	* Administrative Assistants: Non-attorney staff who provide administrative support to attorneys, including scheduling, document preparation, and communication.
	* Legal Assistants: Non-attorney staff who assist attorneys with legal research, document preparation, and other tasks.
	* IT and Operations Staff: Professionals who manage the firm's technology, infrastructure, and operations.

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.
```

## License
This model is licensed under Apache-2.0, which means it can be used freely for both commercial and non-commercial purposes.
```