setup.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # Copyright (c) Meta Platforms, Inc. and affiliates
  2. # All rights reserved.
  3. #
  4. # This source code is licensed under the license found in the
  5. # LICENSE file in the root directory of this source tree.
  6. from setuptools import find_packages, setup
  7. setup(
  8. name="seamless_communication",
  9. version="1.0.0",
  10. packages=find_packages(where="src"),
  11. package_dir={"": "src"},
  12. package_data={"": ["py.typed", "cards/*.yaml"]},
  13. description="SeamlessM4T -- Massively Multilingual & Multimodal Machine Translation Model",
  14. long_description=open("README.md", encoding="utf-8").read(),
  15. long_description_content_type="text/markdown",
  16. readme="README.md",
  17. python_requires=">=3.8",
  18. author="Fundamental AI Research (FAIR) at Meta",
  19. url="https://github.com/facebookresearch/seamless_communication",
  20. license="Creative Commons",
  21. install_requires=[
  22. "datasets",
  23. "fairseq2==0.2.*",
  24. "librosa",
  25. "openai-whisper",
  26. "simuleval~=1.1.2",
  27. "soundfile",
  28. "torchaudio",
  29. "tqdm",
  30. ],
  31. entry_points={
  32. "console_scripts": [
  33. "m4t_evaluate=seamless_communication.cli.m4t.evaluate.evaluate:main",
  34. "m4t_predict=seamless_communication.cli.m4t.predict.predict:main",
  35. "m4t_finetune=seamless_communication.cli.m4t.finetune.finetune:main",
  36. "m4t_prepare_dataset=seamless_communication.cli.m4t.finetune.dataset:main",
  37. "m4t_audio_to_units=seamless_communication.cli.m4t.audio_to_units.audio_to_units:main",
  38. "streaming_evaluate=seamless_communication.cli.streaming.evaluate:main",
  39. ],
  40. },
  41. include_package_data=True,
  42. )