The language model Phi-1.5 is a Transformer with
1.3 billion
parameters. It was trained using the same data sources as
phi-1
, augmented with a new data source that consists of various NLP synthetic texts. When assessed against benchmarks testing common sense, language understanding, and logical reasoning, Phi-1.5 demonstrates a nearly state-of-the-art performance among models with less than 10 billion parameters.
We've trained Microsoft Research's phi-1.5, 1.3B parameter model with question decomposition datasets.
How to Use
Phi-1.5 has been integrated in the
transformers
version 4.37.0. If you are using a lower version, ensure that you are doing the following:
When loading the model, ensure that
trust_remote_code=True
is passed as an argument of the
from_pretrained()
function.
The current
transformers
version can be verified with:
pip list | grep transformers
.
Example
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
torch.set_default_device("cuda")
model = AutoModelForCausalLM.from_pretrained("voidful/qd-phi-1_5",trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("voidful/qd-phi-1_5", trust_remote_code=True,device_map="auto")
inputs = tokenizer("Is it better to love or to be loved?", return_tensors="pt", return_attention_mask=True)
outputs = model.generate(**inputs, max_length=1024)
text = tokenizer.batch_decode(outputs)[0]
print(text)
Result
Question
Is it better to love or to be loved?
Decomposition
{"What does it mean to love?":["How do different philosophical, psychological, and cultural perspectives define love?","What are the characteristics and types of love?","How does love affect human behavior and well-being?"],"What does it mean to be loved?":["How do different philosophical, psychological, and cultural perspectives define being loved?","What are the characteristics and types of being loved?","How does being loved affect human behavior and well-being?"],"What are the benefits and drawbacks of loving oneself?":["How does loving oneself relate to self-esteem, self-acceptance, and self-care?","How does loving oneself affect one's relationships with others?","What are the challenges and risks of loving oneself?"],"What are the benefits and drawbacks of being loved by others?":["How does being loved by others relate to social connection, belonging, and support?","How does being loved by others affect one's identity, autonomy, and agency?","What are the challenges and risks of being loved by others?"],"How do the concepts of loving and being loved interact and influence each other?":["How do different situations and contexts affect the dynamics of love and being loved?","How do different individuals and groups experience and express love and being loved differently?","How do love and being loved shape and change over time?"],"How can one balance and integrate love and being loved in one's life?":["What are some strategies and practices to cultivate and sustain love and being loved?","What are some examples and models of healthy and unhealthy relationships with love and being loved?","What are some goals and values that guide one's choices and actions regarding love and being loved?"]}
Queries
definition and types of love
definition and types of being loved
benefits and drawbacks of loving oneself
benefits and drawbacks of being loved by others
interaction and influence of love and being loved
strategies and practices to balance and integrate love and being loved
examples and models of healthy and unhealthy relationships with love and being loved
goals and values regarding love and being loved
Runs of voidful qd-phi-1_5 on huggingface.co
4
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs
More Information About qd-phi-1_5 huggingface.co Model
qd-phi-1_5 huggingface.co is an AI model on huggingface.co that provides qd-phi-1_5's model effect (), which can be used instantly with this voidful qd-phi-1_5 model. huggingface.co supports a free trial of the qd-phi-1_5 model, and also provides paid use of the qd-phi-1_5. Support call qd-phi-1_5 model through api, including Node.js, Python, http.
qd-phi-1_5 huggingface.co is an online trial and call api platform, which integrates qd-phi-1_5's modeling effects, including api services, and provides a free online trial of qd-phi-1_5, you can try qd-phi-1_5 online for free by clicking the link below.
voidful qd-phi-1_5 online free url in huggingface.co:
qd-phi-1_5 is an open source model from GitHub that offers a free installation service, and any user can find qd-phi-1_5 on GitHub to install. At the same time, huggingface.co provides the effect of qd-phi-1_5 install, users can directly use qd-phi-1_5 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.