File size: 2,313 Bytes
0a25951
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---

language:
- tr
- en
license: mit
tags:
- phi-2
- microsoft
- text-generation
- tr
- turkish
- qlora
inference: false
pipeline_tag: text-generation
---


# sixfinger-phi2-merged

This model is a fine-tuned and merged version of [Microsoft Phi-2](https://huggingface.co/microsoft/phi-2) created by **Six Finger Dev** (Enes Altıparmak). It is a 2.7 billion parameter causal language model tailored to perform well on Turkish Question-Answering (QA), reasoning, and basic coding tasks.

## Model Details

- **Developer:** Six Finger Dev (Enes Altıparmak - Kayseri Science High School)
- **Architecture:** Phi-2 Causal LM
- **Parameters:** ~2.7B
- **Languages:** Turkish (TR), English (EN)
- **License:** MIT

## Training & Optimization
This model was likely fine-tuned using QLoRA against a custom Turkish instruction and multi-turn QA dataset (e.g., [sixfingerdev/turkish-qa-multi-dialog-dataset](https://huggingface.co/datasets/sixfingerdev/turkish-qa-multi-dialog-dataset)). After fine-tuning, the PEFT adapters were fully merged back into the base model weights, meaning it can be loaded directly as a standalone checkpoint without needing the base model or adapter configuration.

## Usage

You can load and generate text with this model directly using the `transformers` library:

```python

import torch

from transformers import AutoModelForCausalLM, AutoTokenizer



model_id = "sixfingerdev/sixfinger-phi2-merged"



tokenizer = AutoTokenizer.from_pretrained(model_id)

model = AutoModelForCausalLM.from_pretrained(

    model_id,

    device_map="auto",

    torch_dtype=torch.float16,

    low_cpu_mem_usage=True

)



prompt = "Soru: Türkiyenin başkenti neresidir? Cevap:"

inputs = tokenizer(prompt, return_tensors="pt").to(model.device)



with torch.no_grad():

    outputs = model.generate(**inputs, max_new_tokens=40)

    

print(tokenizer.decode(outputs[0], skip_special_tokens=True))

```

## Limitations & Biases
While fine-tuned with instruction data, its behavior still heavily relies on prompt-completion formatting. Direct cues like `Answer:` or `Cevap:` yield the best deterministic outputs. In unstructured or lengthy multi-turn chat loops, the model may suffer from repetition or formatting drift compared to purely conversational templates.