Coder Social home page Coder Social logo

wujunde / alpaca-glassoff Goto Github PK

View Code? Open in Web Editor NEW
134.0 2.0 2.0 11.29 MB

Image Acceptable Alpaca (Image-Text Chat AI).

License: Apache License 2.0

Python 19.48% Jupyter Notebook 80.52%
alpaca artifical-intelligense chat-gpt computer-vision nature-language-process deep-learning multimodal

alpaca-glassoff's Introduction

Alpaca-GlassOff🦙🙅‍♂️🕶️: Image Acceptable Alpaca

Alpaca-GlassOff is a mini image-acceptable Chat AI can run on your own laptop. The chat model is based on stanford-alpaca and alpaca-lora.

Demo

https://76585967ea4dcdca44.gradio.live

Example outputs

Recognization

Image:

Chat: what is in the image

Alpaca-GlassOff: Three people in bathing suits are in a pool.


Image:

Chat: what I can make for dinner if have food ingredients like these, and tell me how to do it

Alpaca-GlassOff: If you have food ingredients like these, you can make a vegetable stir-fry. Start by heating a tablespoon of oil in a large skillet over medium-high heat. Add the vegetables and stir-fry for 2-3 minutes, until the vegetables begin to soften. Add the garlic and ginger and stir-fry for an additional 1-2 minutes. Add the soy sauce and stir-fry for an additional 1-2 minutes, until the vegetables are cooked through. Serve the stir-fry over a bed of...


Generation

Image:

Chat: write a poem for the image

Alpaca-GlassOff:

A woman with a flower in her hair,

A beauty that can't be denied.

The petals of the flower, so bright and fair,

A symbol of life, a symbol of care.

The flower in her hair, a symbol of joy,

A reminder of life's beauty, a reminder of love.

A reminder of life's beauty, a reminder of love.


Image:

Chat: Tell me a story based on the given image

Alpaca-GlassOff: She was a young woman who had just moved into a new apartment. She was excited to explore her new surroundings, but she was also a bit overwhelmed. She decided to take it slow and started by reading the newspaper that had been delivered to her doorstep. As she read, she began to feel more at home in her new home.


Image:

chat: who you think would be the best actor of this character

Alpaca-GlassOff: Tom Hardy

So here is a Tom Hardy fan wants him to be both Antman and Venom :)

Fail examples


Image:

Chat: What is the generation of this iphone?

Alpaca-GlassOff: It is an iPhone 11

wrong, it is iPhone1


Image:

Chat: What's this?

Alpaca-GlassOff: It is a stuffed animal toy with a plant in its mouth

wrong, it is pokemon named Exeggutor.


Usage (Inference on pre-trained model)

  1. Install dependencies
pip install -r requirements.txt
  1. If bitsandbytes doesn't work, install it from source. Windows users can follow these instructions.

  2. Run

python generate.py \
    --load_8bit \
    --base_model 'decapoda-research/llama-7b-hf' \
    --lora_weights 'tloen/alpaca-lora-7b'

Contribution

Welcome to contribute

alpaca-glassoff's People

Contributors

wujunde avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  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.