初始化项目,由ModelHub XC社区提供模型
Model: afrideva/phi-2-chat-turkish-GGUF Source: Original Platform
This commit is contained in:
42
.gitattributes
vendored
Normal file
42
.gitattributes
vendored
Normal file
@@ -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
|
||||||
86
README.md
Normal file
86
README.md
Normal file
@@ -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
|
||||||
|
|
||||||
|
<!-- Provide a quick summary of what the model is/does. -->
|
||||||
|
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:
|
||||||
|
|
||||||
|
<prompt> (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)
|
||||||
|
```
|
||||||
3
phi-2-chat-turkish.fp16.gguf
Normal file
3
phi-2-chat-turkish.fp16.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:d70d3e214beb5f354f13c22de0003e5122fcad382d7b40c6ebcb8f8889a3d6bc
|
||||||
|
size 5563088672
|
||||||
3
phi-2-chat-turkish.q2_k.gguf
Normal file
3
phi-2-chat-turkish.q2_k.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:611e09eebf50c9110a1ab730709869666dd7405c2ba0a69495f19767c2b20108
|
||||||
|
size 1173610336
|
||||||
3
phi-2-chat-turkish.q3_k_m.gguf
Normal file
3
phi-2-chat-turkish.q3_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:51a440fc6fefe835249088ba0e4005242d7d0f73078e876e71d1069662b93050
|
||||||
|
size 1480195936
|
||||||
3
phi-2-chat-turkish.q4_k_m.gguf
Normal file
3
phi-2-chat-turkish.q4_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:4c08ed234c5b8520e89d5b224b305fc6f0c87c32b75f582838398abd6144ee28
|
||||||
|
size 1789239136
|
||||||
3
phi-2-chat-turkish.q5_k_m.gguf
Normal file
3
phi-2-chat-turkish.q5_k_m.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5bad88edcaeccb5c72c2e00f46daaaa2218b36613f3688dd830112e0744e6650
|
||||||
|
size 2072682336
|
||||||
3
phi-2-chat-turkish.q6_k.gguf
Normal file
3
phi-2-chat-turkish.q6_k.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:6d20387a156045386e2b429f2f75b2a7e2a67f52c46278151e548cca1d292af0
|
||||||
|
size 2285059936
|
||||||
3
phi-2-chat-turkish.q8_0.gguf
Normal file
3
phi-2-chat-turkish.q8_0.gguf
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:b4554ab17ec872fdd58329e2daa9cd0a9d2cd0a753561ae9c56ab37c0b73e395
|
||||||
|
size 2958032736
|
||||||
Reference in New Issue
Block a user