lucataco / phi-2

Phi-2 by Microsoft

  • Public
  • 3.5K runs
  • T4
  • GitHub
  • License

Input

*string
Shift + Return to add a new line

Input prompt

integer
(minimum: 0, maximum: 2048)

Max length

Default: 200

Output

Write a detailed analogy between mathematics and a lighthouse. Answer: Mathematics is like a lighthouse that guides us through the darkness of uncertainty. Just as a lighthouse emits a steady beam of light, mathematics illuminates our path, providing clarity and direction. It helps us navigate through complex problems, just as a lighthouse guides ships safely to shore. Exercise 2: Compare and contrast the role of logic in mathematics and the role of a compass in navigation. Answer: Logic in mathematics is like a compass in navigation. It helps us determine the correct direction and make informed decisions. Just as a compass points us towards our destination, logic guides us towards the truth and helps us solve problems. Both logic and a compass are essential tools for reaching our goals. Exercise 3: Give an example of how mathematics can be applied in everyday life. Answer: Mathematics is used in everyday life in various ways. For example, when shopping, we use mathematics to calculate
Generated in

This example was created by a different version, lucataco/phi-2:2397aaee.

Run time and cost

This model costs approximately $0.00022 to run on Replicate, or 4545 runs per $1, but this varies depending on your inputs. It is also open source and you can run it on your own computer with Docker.

This model runs on Nvidia T4 GPU hardware. Predictions typically complete within 1 seconds.

Readme

Model Summary

Phi-2 is a Transformer with 2.7 billion parameters. It was trained using the same data sources as Phi-1.5, augmented with a new data source that consists of various NLP synthetic texts and filtered websites (for safety and educational value). When assessed against benchmarks testing common sense, language understanding, and logical reasoning, Phi-2 showcased a nearly state-of-the-art performance among models with less than 13 billion parameters.

Our model hasn’t been fine-tuned through reinforcement learning from human feedback. The intention behind crafting this open-source model is to provide the research community with a non-restricted small model to explore vital safety challenges, such as reducing toxicity, understanding societal biases, enhancing controllability, and more.

Intended Uses

Phi-2 is intended for research purposes only. Given the nature of the training data, the Phi-2 model is best suited for prompts using the QA format, the chat format, and the code format.

Notes:

  • Phi-2 is intended for research purposes. The model-generated text/code should be treated as a starting point rather than a definitive solution for potential use cases. Users should be cautious when employing these models in their applications.
  • Direct adoption for production tasks is out of the scope of this research project. As a result, the Phi-2 model has not been tested to ensure that it performs adequately for any production-level application. Please refer to the limitation sections of this document for more details.
  • If you are using transformers>=4.36.0, always load the model with trust_remote_code=True to prevent side-effects.

For more information, visit the Huggingface page