afrideva / phi-2-chat-GGUF

huggingface.co
Total runs: 401
24-hour runs: 19
7-day runs: 78
30-day runs: 151
Model's Last Updated: December 21 2023
text-generation

Introduction of phi-2-chat-GGUF

Model Details of phi-2-chat-GGUF

malhajar/phi-2-chat-GGUF

Quantized GGUF model files for phi-2-chat from malhajar

Name Quant method Size
phi-2-chat.fp16.gguf fp16 5.56 GB
phi-2-chat.q2_k.gguf q2_k 1.17 GB
phi-2-chat.q3_k_m.gguf q3_k_m 1.48 GB
phi-2-chat.q4_k_m.gguf q4_k_m 1.79 GB
phi-2-chat.q5_k_m.gguf q5_k_m 2.07 GB
phi-2-chat.q6_k.gguf q6_k 2.29 GB
phi-2-chat.q8_0.gguf q8_0 2.96 GB
Original Model Card:

Model Card for Model ID

malhajar/phi-2-chat is a finetuned version of phi-2 using SFT Training. This model can answer information in a chat format as it is finetuned specifically on instructions specifically alpaca-cleaned

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

from transformers import AutoTokenizer,AutoModelForCausalLM
 
model_id = "malhajar/phi-2-chat"
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 = '''
### 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)

Runs of afrideva phi-2-chat-GGUF on huggingface.co

401
Total runs
19
24-hour runs
41
3-day runs
78
7-day runs
151
30-day runs

More Information About phi-2-chat-GGUF huggingface.co Model

phi-2-chat-GGUF huggingface.co

phi-2-chat-GGUF huggingface.co is an AI model on huggingface.co that provides phi-2-chat-GGUF's model effect (), which can be used instantly with this afrideva phi-2-chat-GGUF model. huggingface.co supports a free trial of the phi-2-chat-GGUF model, and also provides paid use of the phi-2-chat-GGUF. Support call phi-2-chat-GGUF model through api, including Node.js, Python, http.

phi-2-chat-GGUF huggingface.co Url

https://huggingface.co/afrideva/phi-2-chat-GGUF

afrideva phi-2-chat-GGUF online free

phi-2-chat-GGUF huggingface.co is an online trial and call api platform, which integrates phi-2-chat-GGUF's modeling effects, including api services, and provides a free online trial of phi-2-chat-GGUF, you can try phi-2-chat-GGUF online for free by clicking the link below.

afrideva phi-2-chat-GGUF online free url in huggingface.co:

https://huggingface.co/afrideva/phi-2-chat-GGUF

phi-2-chat-GGUF install

phi-2-chat-GGUF is an open source model from GitHub that offers a free installation service, and any user can find phi-2-chat-GGUF on GitHub to install. At the same time, huggingface.co provides the effect of phi-2-chat-GGUF install, users can directly use phi-2-chat-GGUF installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

phi-2-chat-GGUF install url in huggingface.co:

https://huggingface.co/afrideva/phi-2-chat-GGUF

Url of phi-2-chat-GGUF

phi-2-chat-GGUF huggingface.co Url

Provider of phi-2-chat-GGUF huggingface.co

afrideva
ORGANIZATIONS

Other API from afrideva

huggingface.co

Total runs: 668
Run Growth: 592
Growth Rate: 88.62%
Updated:December 08 2023
huggingface.co

Total runs: 609
Run Growth: 349
Growth Rate: 57.31%
Updated:December 18 2023