mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-09-01 12:49:50 +08:00
Whisper: Add pip distribution configuration to support pip installations. (#739)
* Whisper: rename whisper to mlx_whisper * Whisper: add setup.py config for publish * Whisper: add assets data to setup config * Whisper: pre-commit for setup.py * Whisper: Update README.md * Whisper: Update README.md * nits * fix package data * nit in readme --------- Co-authored-by: Awni Hannun <awni@apple.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright © 2023 Apple Inc.
|
||||
# Copyright © 2023-2024 Apple Inc.
|
||||
|
||||
import argparse
|
||||
import copy
|
||||
@@ -16,11 +16,10 @@ import mlx.nn as nn
|
||||
import numpy as np
|
||||
import torch
|
||||
from mlx.utils import tree_flatten, tree_map, tree_unflatten
|
||||
from mlx_whisper import torch_whisper
|
||||
from mlx_whisper.whisper import ModelDimensions, Whisper
|
||||
from tqdm import tqdm
|
||||
|
||||
from whisper import torch_whisper
|
||||
from whisper.whisper import ModelDimensions, Whisper
|
||||
|
||||
_VALID_DTYPES = {"float16", "float32"}
|
||||
|
||||
_MODELS = {
|
||||
|
Reference in New Issue
Block a user