GithubHelp home page GithubHelp logo

tollilf / microsoft-phi-2-streamlit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shrimantasatpati/microsoft-phi-2-streamlit

0.0 0.0 0.0 139 KB

Microsoft Phi 2 Streamlit App, deployed on HuggingFace Spaces is based on the Microsoft Phi 2 small language model (SLM) for text generation.

Home Page: https://huggingface.co/spaces/shrimantasatpati/Microsoft_Phi2_Streamlit

Python 1.40% Jupyter Notebook 98.60%

microsoft-phi-2-streamlit's Introduction

Microsoft-Phi-2-Streamlit

Microsoft Phi 2 Streamlit App, deployed on HuggingFace Spaces is based on the Microsoft Phi 2 small language model (SLM) for text generation. Utilizing Streamlit, this application enables users to effortlessly engage with Phi 2, generating text that is contextually rich in response to their prompts.

Temperature - 0.9, max_new_tokens = 512
  • It is a bit irrelevant in the output as temperature (parameter for creativity of prompt output). Image
Temperature - 0.1, max_new_tokens = 512
  • Correct output but some unwanted tokens leakage in the prompt output. Image

    Getting Started

  1. Clone the Repository:

    git clone https://github.com/your-username/Microsoft-Phi-2-Streamlit.git
    cd microsoft-phi2-streamlit-app
  2. Install Dependencies:

    pip install -r requirements.txt
  3. Run the App:

    streamlit run app.py

    This command will launch the app in your default web browser.

Usage

  1. Enter your text prompt in the provided text area.
  2. Click the "Generate" button to initiate text generation based on your prompt.
  3. Explore the generated output provided by the Microsoft Phi 2 language model.

Acknowledgments

  • Microsoft Phi 2 language model - Microsoft Research team in advancing language model capabilities.
  • Streamlit development group.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Issues and Contributions

If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request. Your contributions are highly valued!

Enjoy generating text with Microsoft Phi 2!

microsoft-phi-2-streamlit's People

Contributors

shrimantasatpati avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.