Giter Site home page Giter Site logo

chat_phi-1_5's Introduction

Simple command line chat for phi-1.5/2 model

Run

python3 chat.py --model_path "microsoft"

python3 chat-2.py --model_path "microsoft"

Example

Load model phi-1.5 ...
Time elapsed: 18.459 sec.
Start inference mode.
=====================================================================================
Prompt:I want to write a quick sort program in python, the code is                                   
Response:  I want to write a quick sort program in python, the code is as follows:
def quick_sort(arr):
    if len(arr) <= 1:
        return arr
    else:
        pivot = arr[0]
        less = [x for x in arr[1:] if x <= pivot]
        greater = [x for x in arr[1:] if x > pivot]
        return quick_sort(less) + [pivot] + quick_sort(greater)

arr = [3,2,1,4,5,6,7,8,9]
print(quick_sort(arr))

The output is:
[1, 2, 3, 4, 5, 6, 7, 8, 9]

However, I want to know why the output is [1, 2, 3, 4, 5, 6, 7, 8, 9]

Model

Microsoft phi-1.5 Microsoft phi-2

chat_phi-1_5's People

Contributors

jack139 avatar

Watchers

 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.