Merge pull request #250918 from happysalada/fast_chat_init

fschat: init at 0.2.28
This commit is contained in:
OTABI Tomoya
2023-09-18 17:30:23 +09:00
committed by GitHub
2 changed files with 104 additions and 0 deletions
@@ -0,0 +1,102 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, aiohttp
, fastapi
, httpx
, markdown2
, nh3
, numpy
, prompt-toolkit
, pydantic
, requests
, rich
, shortuuid
, tiktoken
, uvicorn
, anthropic
, openai
, ray
, wandb
, einops
, gradio
, accelerate
, peft
, sentencepiece
, torch
, transformers
, protobuf
}:
let
version = "0.2.28";
in
buildPythonPackage {
pname = "fschat";
inherit version;
format = "pyproject";
src = fetchFromGitHub {
owner = "lm-sys";
repo = "FastChat";
rev = "v${version}";
hash = "sha256-nTP4zY6mJykzKb6LBWosg77mwE33vq9eiYSpAlZU5NI=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
aiohttp
fastapi
httpx
markdown2
nh3
numpy
prompt-toolkit
pydantic
requests
rich
shortuuid
tiktoken
uvicorn
# ] ++ markdown2.optional-dependencies.all;
];
passthru.optional-dependencies = {
llm_judge = [
anthropic
openai
ray
];
train = [
# flash-attn
wandb
einops
];
webui = [
gradio
];
model_worker = [
accelerate
peft
sentencepiece
torch
transformers
protobuf
];
};
pythonImportsCheck = [ "fastchat" ];
# tests require networking
doCheck = false;
meta = with lib; {
description = "An open platform for training, serving, and evaluating large language models. Release repo for Vicuna and Chatbot Arena";
homepage = "https://github.com/lm-sys/FastChat";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
};
}
+2
View File
@@ -4122,6 +4122,8 @@ self: super: with self; {
fs-s3fs = callPackage ../development/python-modules/fs-s3fs { };
fschat = callPackage ../development/python-modules/fschat { };
fsspec = callPackage ../development/python-modules/fsspec { };
fst-pso = callPackage ../development/python-modules/fst-pso { };