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