From c78bee0b7287da6e2b4304089378b9e78f3dd908 Mon Sep 17 00:00:00 2001 From: ModelHub XC Date: Tue, 5 May 2026 09:12:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=EF=BC=8C=E7=94=B1ModelHub=20XC=E7=A4=BE=E5=8C=BA=E6=8F=90?= =?UTF-8?q?=E4=BE=9B=E6=A8=A1=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Model: afrideva/phi-2-chat-turkish-GGUF Source: Original Platform --- .gitattributes | 42 +++++++++++++++++ README.md | 86 ++++++++++++++++++++++++++++++++++ phi-2-chat-turkish.fp16.gguf | 3 ++ phi-2-chat-turkish.q2_k.gguf | 3 ++ phi-2-chat-turkish.q3_k_m.gguf | 3 ++ phi-2-chat-turkish.q4_k_m.gguf | 3 ++ phi-2-chat-turkish.q5_k_m.gguf | 3 ++ phi-2-chat-turkish.q6_k.gguf | 3 ++ phi-2-chat-turkish.q8_0.gguf | 3 ++ 9 files changed, 149 insertions(+) create mode 100644 .gitattributes create mode 100644 README.md create mode 100644 phi-2-chat-turkish.fp16.gguf create mode 100644 phi-2-chat-turkish.q2_k.gguf create mode 100644 phi-2-chat-turkish.q3_k_m.gguf create mode 100644 phi-2-chat-turkish.q4_k_m.gguf create mode 100644 phi-2-chat-turkish.q5_k_m.gguf create mode 100644 phi-2-chat-turkish.q6_k.gguf create mode 100644 phi-2-chat-turkish.q8_0.gguf diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..b2f6a3f --- /dev/null +++ b/.gitattributes @@ -0,0 +1,42 @@ +*.7z filter=lfs diff=lfs merge=lfs -text +*.arrow filter=lfs diff=lfs merge=lfs -text +*.bin filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.ckpt filter=lfs diff=lfs merge=lfs -text +*.ftz filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.h5 filter=lfs diff=lfs merge=lfs -text +*.joblib filter=lfs diff=lfs merge=lfs -text +*.lfs.* filter=lfs diff=lfs merge=lfs -text +*.mlmodel filter=lfs diff=lfs merge=lfs -text +*.model filter=lfs diff=lfs merge=lfs -text +*.msgpack filter=lfs diff=lfs merge=lfs -text +*.npy filter=lfs diff=lfs merge=lfs -text +*.npz filter=lfs diff=lfs merge=lfs -text +*.onnx filter=lfs diff=lfs merge=lfs -text +*.ot filter=lfs diff=lfs merge=lfs -text +*.parquet filter=lfs diff=lfs merge=lfs -text +*.pb filter=lfs diff=lfs merge=lfs -text +*.pickle filter=lfs diff=lfs merge=lfs -text +*.pkl filter=lfs diff=lfs merge=lfs -text +*.pt filter=lfs diff=lfs merge=lfs -text +*.pth filter=lfs diff=lfs merge=lfs -text +*.rar filter=lfs diff=lfs merge=lfs -text +*.safetensors filter=lfs diff=lfs merge=lfs -text +saved_model/**/* filter=lfs diff=lfs merge=lfs -text +*.tar.* filter=lfs diff=lfs merge=lfs -text +*.tar filter=lfs diff=lfs merge=lfs -text +*.tflite filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.wasm filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text +*tfevents* filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.fp16.gguf filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.q2_k.gguf filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.q3_k_m.gguf filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.q4_k_m.gguf filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.q5_k_m.gguf filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.q6_k.gguf filter=lfs diff=lfs merge=lfs -text +phi-2-chat-turkish.q8_0.gguf filter=lfs diff=lfs merge=lfs -text diff --git a/README.md b/README.md new file mode 100644 index 0000000..c8c40aa --- /dev/null +++ b/README.md @@ -0,0 +1,86 @@ +--- +base_model: malhajar/phi-2-chat-turkish +datasets: +- TFLai/Turkish-Alpaca +inference: false +language: +- tr +model_creator: malhajar +model_name: phi-2-chat-turkish +pipeline_tag: text-generation +quantized_by: afrideva +tags: +- gguf +- ggml +- quantized +- q2_k +- q3_k_m +- q4_k_m +- q5_k_m +- q6_k +- q8_0 +--- +# malhajar/phi-2-chat-turkish-GGUF + +Quantized GGUF model files for [phi-2-chat-turkish](https://huggingface.co/malhajar/phi-2-chat-turkish) from [malhajar](https://huggingface.co/malhajar) + + +| Name | Quant method | Size | +| ---- | ---- | ---- | +| [phi-2-chat-turkish.fp16.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.fp16.gguf) | fp16 | 5.56 GB | +| [phi-2-chat-turkish.q2_k.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.q2_k.gguf) | q2_k | 1.17 GB | +| [phi-2-chat-turkish.q3_k_m.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.q3_k_m.gguf) | q3_k_m | 1.48 GB | +| [phi-2-chat-turkish.q4_k_m.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.q4_k_m.gguf) | q4_k_m | 1.79 GB | +| [phi-2-chat-turkish.q5_k_m.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.q5_k_m.gguf) | q5_k_m | 2.07 GB | +| [phi-2-chat-turkish.q6_k.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.q6_k.gguf) | q6_k | 2.29 GB | +| [phi-2-chat-turkish.q8_0.gguf](https://huggingface.co/afrideva/phi-2-chat-turkish-GGUF/resolve/main/phi-2-chat-turkish.q8_0.gguf) | q8_0 | 2.96 GB | + + + +## Original Model Card: +# Model Card for Model ID + + +malhajar/phi-2-chat-turkish is a finetuned version of phi-2 using SFT Training. +This model can answer information in turkish language as it is finetuned on a turkish dataset specifically [`Turkish-Alpaca`]( https://huggingface.co/datasets/TFLai/Turkish-Alpaca) + +### Model Description + +- **Developed by:** [`Mohamad Alhajar`](https://www.linkedin.com/in/muhammet-alhajar/) +- **Language(s) (NLP):** Turkish +- **Finetuned from model:** [`microsoft/phi-2`](https://huggingface.co/microsoft/phi-2) + +### Prompt Template +``` +### Instruction: + + (without the <>) + +### Response: +``` +## How to Get Started with the Model + +Use the code sample provided in the original post to interact with the model. +```python +from transformers import AutoTokenizer,AutoModelForCausalLM + +model_id = "malhajar/phi-2-chat-turkish" +model = AutoModelForCausalLM.from_pretrained(model_name_or_path, + device_map="auto", + torch_dtype=torch.float16, + revision="main") + +tokenizer = AutoTokenizer.from_pretrained(model_id) + +question: "Türkiyenin en büyük şehir nedir?" +# For generating a response +prompt = f''' +### Instruction: {question} ### Response: +''' +input_ids = tokenizer(prompt, return_tensors="pt").input_ids +output = model.generate(inputs=input_ids,max_new_tokens=512,pad_token_id=tokenizer.eos_token_id,top_k=50, do_sample=True,repetition_penalty=1.3 + top_p=0.95,trust_remote_code=True,) +response = tokenizer.decode(output[0]) + +print(response) +``` \ No newline at end of file diff --git a/phi-2-chat-turkish.fp16.gguf b/phi-2-chat-turkish.fp16.gguf new file mode 100644 index 0000000..061308b --- /dev/null +++ b/phi-2-chat-turkish.fp16.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:d70d3e214beb5f354f13c22de0003e5122fcad382d7b40c6ebcb8f8889a3d6bc +size 5563088672 diff --git a/phi-2-chat-turkish.q2_k.gguf b/phi-2-chat-turkish.q2_k.gguf new file mode 100644 index 0000000..af667d4 --- /dev/null +++ b/phi-2-chat-turkish.q2_k.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:611e09eebf50c9110a1ab730709869666dd7405c2ba0a69495f19767c2b20108 +size 1173610336 diff --git a/phi-2-chat-turkish.q3_k_m.gguf b/phi-2-chat-turkish.q3_k_m.gguf new file mode 100644 index 0000000..510b376 --- /dev/null +++ b/phi-2-chat-turkish.q3_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:51a440fc6fefe835249088ba0e4005242d7d0f73078e876e71d1069662b93050 +size 1480195936 diff --git a/phi-2-chat-turkish.q4_k_m.gguf b/phi-2-chat-turkish.q4_k_m.gguf new file mode 100644 index 0000000..7b4598e --- /dev/null +++ b/phi-2-chat-turkish.q4_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c08ed234c5b8520e89d5b224b305fc6f0c87c32b75f582838398abd6144ee28 +size 1789239136 diff --git a/phi-2-chat-turkish.q5_k_m.gguf b/phi-2-chat-turkish.q5_k_m.gguf new file mode 100644 index 0000000..7b15964 --- /dev/null +++ b/phi-2-chat-turkish.q5_k_m.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5bad88edcaeccb5c72c2e00f46daaaa2218b36613f3688dd830112e0744e6650 +size 2072682336 diff --git a/phi-2-chat-turkish.q6_k.gguf b/phi-2-chat-turkish.q6_k.gguf new file mode 100644 index 0000000..5b1c627 --- /dev/null +++ b/phi-2-chat-turkish.q6_k.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6d20387a156045386e2b429f2f75b2a7e2a67f52c46278151e548cca1d292af0 +size 2285059936 diff --git a/phi-2-chat-turkish.q8_0.gguf b/phi-2-chat-turkish.q8_0.gguf new file mode 100644 index 0000000..9e725c3 --- /dev/null +++ b/phi-2-chat-turkish.q8_0.gguf @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b4554ab17ec872fdd58329e2daa9cd0a9d2cd0a753561ae9c56ab37c0b73e395 +size 2958032736