This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# based on StableLM chat | |
# https://huggingface.co/spaces/stabilityai/stablelm-tuned-alpha-chat | |
import gradio as gr | |
import torch | |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline, StoppingCriteria, StoppingCriteriaList, TextIteratorStreamer | |
import time | |
import numpy as np | |
from torch.nn import functional as F | |
import os | |
from threading import Thread |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
variables: | |
ANDROID_COMPILE_SDK: "28" | |
test:unit: | |
image: circleci/android:api-${ANDROID_COMPILE_SDK} | |
cache: | |
key: gradle-cache | |
paths: [ .gradle ] | |
variables: | |
# GRADLE_OPTS: "-Dorg.gradle.daemon=false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM appbase | |
# install npm & bower packages | |
WORKDIR /root | |
COPY package.json bower.json /root/ | |
RUN npm install --only=prod && \ | |
npm cache clean && \ | |
bower install --allow-root | |
# install gems |