Giter VIP home page Giter VIP logo

galactica_cli's Introduction

CLI interface for GALACTICA

A simple cli for the GALACTICA LLM.

Installation

Recommended installation via pipx:

pipx install PATH_TO_CLONED_REPO

or

pipx install git+https://github.com/Blueblue4/galactica_cli.git

Usage

After installing the CLI interface with pipx you can use it from anywhere via your commandline:

galai_cli "Finish my Paper! Or at least this formula: \\[" 

Features

Positional arguments:
  prompt                Prompt for the language model. Special tokens are used to nudge the 
                        language model to perform specific tasks, they include: 
                        [START_REF]      : insert a Reference. 
                        <work>           : reason about a question posed in the prompt. 
                        TLDR:            : produce a TLDR summary of the prompt. 
                        [START_I_SMILES] : generate a molecule/molecules.
                        [START_AMINO]    : generate a protein annotation.

optional arguments:
  -h, --help            show this help message and exit
  --model_size {mini,base,standard,large,huge}
                        Model size of the GALACTICA model, default: base
  --num_gpus NUM_GPUS   Number of GPUs to use
  --parallelize         Parallelize over GPUs, requires more than 1 GPU
  --new_doc             Starts a new document
  --max_length MAX_LENGTH
                        Maximum length in tokens of the generated text including the prompt.
                        If MAX_LENGTH==None, then 60 is used. Default is None.
  --top_p TOP_P         If specified performs top p sampling, i.e. samples from amongst the 
                        top tokens whose probabilities add up top_p. Gives more variability.
  --num_seq NUM_SEQ     num_return_sequences : int, default 1 Number of generations to return 
                        for each prompt. Only works with TOP_P is set otherwise greedy 
                        evalauation would return the same result each time. 

See https://github.com/paperswithcode/galai and galactica.org for more information on the GALACTICA model.

galactica_cli's People

Contributors

blueblue4 avatar

Stargazers

 avatar  avatar tengda avatar Fabian Herzog avatar  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.