Aller directement au contenu
  • Catégories
  • Récent
  • Mots-clés
  • Populaire
  • Web
  • Utilisateurs
  • Groupes
Habillages
  • Clair
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Sombre
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Défaut (Aucun habillage)
  • Aucun habillage
Réduire

NodeBB

  1. Accueil
  2. General Discussion
  3. Linux
  4. llama.cpp avec Vulkan

llama.cpp avec Vulkan

Planifié Épinglé Verrouillé Déplacé Linux
llama.cppubuntu
20 Messages 1 Publieurs 225 Vues 1 Abonné
  • Du plus ancien au plus récent
  • Du plus récent au plus ancien
  • Les plus votés
Répondre
  • Répondre à l'aide d'un nouveau sujet
Se connecter pour répondre
Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
  • fariasF Hors-ligne
    fariasF Hors-ligne
    farias
    a écrit sur dernière édition par
    #9

    Nouveau build :

    #  cmake -B build -DGGML_VULKAN=ON -DCMAKE_BUILD_TYPE=Release
    CMAKE_BUILD_TYPE=Release
    -- Warning: ccache not found - consider installing it for faster compilation or disable this warning with GGML_CCACHE=OFF
    -- CMAKE_SYSTEM_PROCESSOR: x86_64
    -- GGML_SYSTEM_ARCH: x86
    -- Including CPU backend
    -- x86 detected
    -- Adding CPU backend variant ggml-cpu: -march=native 
    -- Found Vulkan: /usr/lib/x86_64-linux-gnu/libvulkan.so (found version "1.4.313") found components: glslc glslangValidator 
    -- Vulkan found
    -- GL_KHR_cooperative_matrix supported by glslc
    -- GL_NV_cooperative_matrix2 supported by glslc
    -- GL_NV_cooperative_matrix_decode_vector not supported by glslc
    -- GL_EXT_integer_dot_product supported by glslc
    -- GL_EXT_bfloat16 supported by glslc
    -- Including Vulkan backend
    -- ggml version: 0.15.2
    -- ggml commit:  5fd2dc2c4
    -- Found OpenSSL: /usr/lib/x86_64-linux-gnu/libcrypto.so (found version "3.0.13")  
    -- Performing Test OPENSSL_VERSION_SUPPORTED
    -- Performing Test OPENSSL_VERSION_SUPPORTED - Success
    -- OpenSSL found: 3.0.13
    -- Generating embedded license file for target: llama-app
    -- Configuring done (5.0s)
    -- Generating done (0.6s)
    
    
    1 réponse Dernière réponse
    0
    • fariasF Hors-ligne
      fariasF Hors-ligne
      farias
      a écrit sur dernière édition par
      #10

      La commande pour le build :

      # cmake --build build --config Release -j
      
      1 réponse Dernière réponse
      0
      • fariasF Hors-ligne
        fariasF Hors-ligne
        farias
        a écrit sur dernière édition par
        #11

        Petit test :

        # make install
        # ldconfig -v
        #  llama-bench -m  /models/qwen2.5-1.5b-instruct-q4_k_m.gguf
        ggml_vulkan: Found 2 Vulkan devices:
        ggml_vulkan: 0 = Quadro M5000 (NVIDIA) | uma: 0 | fp16: 0 | bf16: 0 | warp size: 32 | shared memory: 49152 | int dot: 1 | matrix cores: none
        ggml_vulkan: 1 = Quadro M4000 (NVIDIA) | uma: 0 | fp16: 0 | bf16: 0 | warp size: 32 | shared memory: 49152 | int dot: 1 | matrix cores: none
        | model                          |       size |     params | backend    | ngl |            test |                  t/s |
        | ------------------------------ | ---------: | ---------: | ---------- | --: | --------------: | -------------------: |
        | qwen2 1.5B Q4_K - Medium       | 934.69 MiB |     1.54 B | Vulkan     |  -1 |           pp512 |         53.48 ± 0.42 |
        | qwen2 1.5B Q4_K - Medium       | 934.69 MiB |     1.54 B | Vulkan     |  -1 |           tg128 |         63.55 ± 0.73 |
        
        build: 5fd2dc2c4 (9721)
        1 réponse Dernière réponse
        0
        • fariasF Hors-ligne
          fariasF Hors-ligne
          farias
          a écrit sur dernière édition par
          #12

          Arret de openwebui :

          # systemctl stop openwebui
          # systemctl disable openwebui
          Removed "/etc/systemd/system/multi-user.target.wants/openwebui.service".
          
          

          Arret de ollama :

          # systemctl stop ollama
          # systemctl disable ollama
          Removed "/etc/systemd/system/default.target.wants/ollama.service".
          
          
          1 réponse Dernière réponse
          0
          • fariasF Hors-ligne
            fariasF Hors-ligne
            farias
            a écrit sur dernière édition par
            #13

            Test en ligne de commande :

            # llama-server -m /models/qwen2.5-1.5b-instruct-q4_k_m.gguf --host 0.0.0.0
            
            1 réponse Dernière réponse
            0
            • fariasF Hors-ligne
              fariasF Hors-ligne
              farias
              a écrit sur dernière édition par farias
              #14

              Mon fichier service :

              # systemctl status llama-server
              ● llama-server.service - Llama Server
                   Loaded: loaded (/etc/systemd/system/llama-server.service; disabled; preset: enabled)
                   Active: active (running) since Fri 2026-06-19 17:27:42 UTC; 29s ago
                 Main PID: 37413 (llama-server)
                    Tasks: 41 (limit: 94224)
                   Memory: 91.7M (peak: 91.7M)
                      CPU: 3.103s
                   CGroup: /system.slice/llama-server.service
                           └─37413 /usr/local/bin/llama-server --model /models/qwen2.5-1.5b-instruct-q4_k_m.gguf --host 0.0.0.0 --port 8080
              
              juin 19 17:27:42 XXXX systemd[1]: Started llama-server.service - Llama Server.
              # cat /etc/systemd/system/llama-server.service
              [Unit]
              Description=Llama Server
              After=network.target
              
              [Service]
              Type=simple
              User=root
              WorkingDirectory=/home/XXXX/llama.cpp
              Environment="NVM_BIN=/root/.nvm/versions/node/v26.3.1/bin"
              Environment="LD_LIBRARY_PATH=:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64"
              Environment="VULKAN_VERSION=1.4.350.1"
              ExecStart=/usr/local/bin/llama-server \
                --model /models/qwen2.5-1.5b-instruct-q4_k_m.gguf \
                --host 0.0.0.0 --port 8080
              Restart=on-failure
              RestartSec=5s
              StandardOutput=file:/tmp/llama-server.stdout.log
              StandardError=file:/tmp/llama-server.stderr.log
              
              [Install]
              WantedBy=multi-user.target
              
              
              1 réponse Dernière réponse
              0
              • fariasF Hors-ligne
                fariasF Hors-ligne
                farias
                a écrit sur dernière édition par farias
                #15

                Le meilleur modèle semble être https://huggingface.co/Qwen/Qwen3.5-2B pour mes cartes.

                1 réponse Dernière réponse
                0
                • fariasF Hors-ligne
                  fariasF Hors-ligne
                  farias
                  a écrit sur dernière édition par
                  #16

                  https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/resolve/main/Qwen3.5-2B-Q4_0.gguf?download=true

                  1 réponse Dernière réponse
                  0
                  • fariasF Hors-ligne
                    fariasF Hors-ligne
                    farias
                    a écrit sur dernière édition par
                    #17

                    Chargement MMproj :

                    # curl --output /models/mmproj-BF16.gguf https://huggingface.co/unsloth/Qwen2.5-Omni-7B-GGUF/resolve/main/mmproj-BF16.gguf?download=true 
                    # ls -l /models/mmproj-BF16.gguf
                    -rw-r--r-- 1 root root 986 juin  28 16:53 /models/mmproj-BF16.gguf
                    
                    1 réponse Dernière réponse
                    0
                    • fariasF Hors-ligne
                      fariasF Hors-ligne
                      farias
                      a écrit sur dernière édition par
                      #18

                      MMproj pour Quen 3.5 :
                      https://huggingface.co/unsloth/Qwen3.5-2B-GGUF/blob/main/mmproj-F32.gguf

                      1 réponse Dernière réponse
                      0
                      • fariasF Hors-ligne
                        fariasF Hors-ligne
                        farias
                        a écrit sur dernière édition par farias
                        #19

                        Nouvelle commande de lancement :

                        ExecStart=/usr/local/bin/llama-server \
                          --model /models/Qwen3.5-2B-Q4_0.gguf \
                          --mmproj  /models/mmproj-F32.gguf \
                          --host 0.0.0.0 --port 8080
                        
                        
                        1 réponse Dernière réponse
                        0
                        • fariasF Hors-ligne
                          fariasF Hors-ligne
                          farias
                          a écrit sur dernière édition par
                          #20

                          Petit test : 40.81 t/s

                          1 réponse Dernière réponse
                          0

                          Bonjour ! Vous semblez intéressé par cette conversation, mais vous n’avez pas encore de compte.

                          Marre de refaire défiler les mêmes messages ? Créez un compte pour retrouver votre position, recevoir des notifications des nouvelles réponses, sauvegarder vos favoris et voter pour les messages que vous appréciez.

                          Grâce à votre participation, ce message peut devenir encore meilleur 💗

                          S'inscrire Se connecter
                          Répondre
                          • Répondre à l'aide d'un nouveau sujet
                          Se connecter pour répondre
                          • Du plus ancien au plus récent
                          • Du plus récent au plus ancien
                          • Les plus votés


                          • Se connecter

                          • Vous n'avez pas de compte ? S'inscrire

                          • Connectez-vous ou inscrivez-vous pour faire une recherche.
                          Powered by NodeBB Contributors
                          • Premier message
                            Dernier message
                          0
                          • Catégories
                          • Récent
                          • Mots-clés
                          • Populaire
                          • Web
                          • Utilisateurs
                          • Groupes