Giter VIP home page Giter VIP logo

last's Introduction

LAST

LLM Alignment and Safety Toolkit

Installation

not supported yet

Usage

not supported yet

Pre-requisites

  1. [Optinal] Install conda if you want to keep your system clean. Then create a conda environment.
conda create -n last python=3.8
conda activate last
  1. Install poetry

  2. Install redis

Run dashboard in local

create a .env file in the root directory of the project and add the following variables

DATABASE_URL=sqlite://dashboard/app.sqlite3
REDIS_URL=redis://localhost:6379/0

then go to the project directory and run the following commands

poetry install && make compile
poetry run python dashboard/app.py

If this is the first time you run the dashboard, you need to create an admin user by visiting http://127.0.0.1:8000/admin/init

For more detail, checkout Dockfile and docker-compose.yml in case I miss something.

Locales

当需要使用中文时,使用from last.services.i18n import _代替_,并在需要翻译的字符串前加上_,例如:

from last.services.i18n import _
label = _('label')

之后,使用make babel提取需要翻译的字符串,文件存储在last/services/locales/zh_CN/LC_MESSAGES/messages.po。 修改完成后,使用make compile编译翻译文件。

last's People

Contributors

wangxuhongcn avatar pjlabtest2023 avatar echo-minn avatar eveyuyi avatar wanchengxue avatar allenwoods avatar alvin6233 avatar andyfan1996 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.