Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posté(e)

Méthode:

  • Créer un répertoire, un venv et l'activer

    mkdir ~/Projets/Qwen3 && cd ~/Projets/Qwen3

    python -m venv .

    source ./bin/activate

Installer les dépendances pour les exemples Qwen, mais en remplaçant torch et tensorflow par la version CPU

pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
pip uninstall -y tensorflow && pip install tensorflow-cpu
pip install -U qwen-tts

NE PAS INSTALLER flash_attn!

Adapter les exemples qui sont liés à une device "cuda:0" et à flash_attn. Replace bfloat16 par float peut aider.

Dans les codes sources proposés par Alibaba, remplacer:

  • device_map="cuda:0" par device_map="cpu"

  • dtype=torch.bfloat16 par dtype=torch.float (perfs x2 :) )

  • supprimer attn_implementation

Exemple:

  • AVANT

    model = Qwen3TTSModel.from_pretrained(
    "Qwen/Qwen3-TTS-12Hz-0.6B-Base",
    device_map="cuda:0",
    dtype=torch.bfloat16,
    attn_implementation="flash_attention_2",

    )

  • APRES

    model = Qwen3TTSModel.from_pretrained(
    "Qwen/Qwen3-TTS-12Hz-0.6B-Base",
    device_map="cpu",
    dtype=torch.float,
    # attn_implementation="flash_attention_2",

    )

Il y aura un petit avertissement certainement concernant AVX2/FMA, pour le faire sauter il faudra recompiler tensorflow avec le support de ces instructions,

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.