!QhvgabMQzwEQeWehhZ:lossy.network

NixOS Home Automation

515 Members
Declarative Home Automation and other Sidequests | https://wiki.nixos.org/wiki/Home_Assistant131 Servers

Load older messages


SenderMessageTime
26 Sep 2024
@hexa:lossy.network@hexa:lossy.network
In reply to @mattleon:matrix.org
This reddit thread has some performance notes for various models and Nvidia cards, but I don't see llama with 3b parameters: https://www.reddit.com/r/LocalLLaMA/comments/13j5cxf/how_many_tokens_per_second_do_you_guys_get_with/
I think the smallest model was 4 or 8b thus far
15:07:51
@mackeveli:matrix.orgMackeveli Is there some way of overriding cacert and adding private CAs to it in the music-assistant package like in the home-assistant package?
https://wiki.nixos.org/wiki/Home_Assistant#Trust_a_private_certificate_authority
16:18:19
@hexa:lossy.network@hexa:lossy.networkreplace home-assistant with music-assisant17:09:33
@hexa:lossy.network@hexa:lossy.networkboth of them consume certifi, the package handing out cacerts for python consumers17:09:48
@mackeveli:matrix.orgMackeveli I tried that but the music-assistant package doesn't expose a packageOverrides variable like the home-assistant package does so I get this error upon doing a nixos-rebuild:
error: function 'anonymous lambda' called with unexpected argument 'packageOverrides'

       at /nix/store/y6205wq8hxvpqvl8l9d1n9xah01kg0lq-source/pkgs/by-name/mu/music-assistant/package.nix:1:1:

            1| { lib
             | ^
            2| , python3
17:27:06
@hexa:lossy.network@hexa:lossy.networkah, hm.17:27:46
@hexa:lossy.network@hexa:lossy.networkyou can pass an overriden cacert by passing the NIX_SSL_CERT_FILE environment variable to the systemd unit then17:28:54
@hexa:lossy.network@hexa:lossy.network
systemd.services.music-assistant.environment.NIX_SSL_CERT_FILE = "${pkgs.cacert.override { extraCertificateFiles [ ./foo.pem ] }}/etc/ssl/certs/ca-bundle.crt";
17:30:57
@hexa:lossy.network@hexa:lossy.network *
systemd.services.music-assistant.environment = {
  NIX_SSL_CERT_FILE = "${pkgs.cacert.override { extraCertificateFiles [ ./foo.pem ] }}/etc/ssl/certs/ca-bundle.crt";
};
17:31:08
@hexa:lossy.network@hexa:lossy.network also supports extraCertificateStrings, a list of strings 17:34:16
@mackeveli:matrix.orgMackeveli Hmm I tried that but now I'm getting an unrelated error upon running nixos-rebuild:
 error: attempt to call something which is not a function but a list

       at /nix/store/y6205wq8hxvpqvl8l9d1n9xah01kg0lq-source/pkgs/by-name/mu/music-assis
tant/package.nix:20:52:

           19|   providerNames = lib.attrNames providerPackages;
           20|   providerDependencies = lib.concatMap (provider: (providerPackages.${provider} python.pkgs)) providers;
             |                                                    ^
           21|
17:34:41
@hexa:lossy.network@hexa:lossy.networkpost your config17:36:48
@mackeveli:matrix.orgMackeveli https://github.com/negatethis/nixos-config/blob/main/services/music-assistant.nix 18:14:15
@hexa:lossy.network@hexa:lossy.networkok, I see the issue18:18:42
@hexa:lossy.network@hexa:lossy.networkalso note that we are lacking dependencies for some of these providers18:20:18
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/NixOS/nixpkgs/pull/34470418:23:35
@mackeveli:matrix.orgMackeveli Gotcha. I'll stick to the music-assistant container and use only HTTP while this is sorted out. I appreciate the help! 18:34:58
27 Sep 2024
@sandro:supersandro.deSandro 🐧 hexa: did you already think or investigate if we can follow ha with replacing pip with uv? https://developers.home-assistant.io/blog/2024/04/03/build-images-with-uv/ 12:33:30
@hexa:lossy.network@hexa:lossy.networkwe don't use pip?12:33:58
@hexa:lossy.network@hexa:lossy.networki'm not sure what you're asking for12:34:46
@hexa:lossy.network@hexa:lossy.networkhttps://github.com/home-assistant/core/commit/c8948e3b1c8b1f52df6185695331cf6471c8682912:39:44
@hexa:lossy.network@hexa:lossy.networkprobably what he is talking about12:40:36
@sandro:supersandro.deSandro 🐧oh yeah, right 🤦‍♂️15:09:33
@sandro:supersandro.deSandro 🐧Would it make sense to replace it here https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/interpreters/python/hooks/pip-install-hook.sh#L14 ? Is that even a part which takes a while to run?15:10:54
@hexa:lossy.network@hexa:lossy.networkthat hooks is only used for python215:16:35
@hexa:lossy.network@hexa:lossy.networktry again 😛 15:16:44
@hexa:lossy.network@hexa:lossy.networkwe use pypaInstallHook (aka python -m installer) for installing15:18:04
@hexa:lossy.network@hexa:lossy.networkand the buildPhase always created a wheel for the installPhase to unpack and installl15:18:36
@hexa:lossy.network@hexa:lossy.network * and the buildPhase always creates a wheel for the installPhase to unpack and installl15:18:40
@elikoga:matrix.orgelikoga set a profile picture.16:27:26

Show newer messages


Back to Room ListRoom Version: 6