Files
nixpkgs/pkgs/development/python-modules/fschat/default.nix
T
Michael Daniels 075e8c2c4f treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

100 lines
1.6 KiB
Nix

{
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.36";
in
buildPythonPackage {
pname = "fschat";
inherit version;
pyproject = true;
src = fetchFromGitHub {
owner = "lm-sys";
repo = "FastChat";
tag = "v${version}";
hash = "sha256-tQuvQXzQbQjU16DfS1o55VHW6eklngEvIigzZGgrKB8=";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
fastapi
httpx
markdown2
nh3
numpy
prompt-toolkit
pydantic
requests
rich
shortuuid
tiktoken
uvicorn
# ] ++ markdown2.optional-dependencies.all;
];
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 = {
description = "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 = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}