2024-08-01 14:44:36 +08:00
2024-03-21 17:55:02 +08:00
2024-06-03 01:07:51 +08:00
2024-08-01 14:44:36 +08:00
2024-03-21 18:12:32 +08:00
2024-05-17 15:45:40 +08:00
2024-05-17 17:26:46 +08:00
2024-05-16 17:05:21 +08:00
2024-07-29 10:24:44 +08:00

jarvis-models

Conda Environment and Python Library Requirement

conda create -n jarvis-models python==3.10.11
pip install -r sample/requirement_out_of_pytorch.txt
pip install torch==2.0.1 torchvision==0.15.2 torchaudio==2.0.2 --index-url https://download.pytorch.org/whl/cu118

More Dependencies

System package web install command
python filetype https://pypi.org/project/filetype/ pip install filetype
python fastAPI https://fastapi.tiangolo.com/ pip install fastapi
python python-multipart https://pypi.org/project/python-multipart/ pip install python-multipart
python uvicorn https://www.uvicorn.org/ pip install "uvicorn[standard]"
python SpeechRecognition https://pypi.org/project/SpeechRecognition/ pip install SpeechRecognition
python gtts https://pypi.org/project/gTTS/ pip install gTTS
python PyYAML https://pypi.org/project/PyYAML/ pip install PyYAML
python injector https://github.com/python-injector/injector pip install injector
python langchain https://github.com/langchain-ai/langchain pip install langchain
python chromadb https://docs.trychroma.com/getting-started pip install chromadb
python lagent https://github.com/InternLM/lagent/blob/main/README.md pip install lagent
python sentence_transformers https://github.com/InternLM/lagent/blob/main/README.md pip install sentence_transformers

Start

Start the jarvis-models service via

uvicorn main:app --reload

or

python main.py

Configuration

Create ".env.yaml" at the root of jarvis-models, and copy the following yaml configuration

env:
  version: 0.0.1
  host: 0.0.0.0
  port: 8000

log:
  level: debug
  time_format: "%Y-%m-%d %H:%M:%S"
  filename: "D:/Workspace/Logging/jarvis/jarvis-models.log"

melotts:
  mode: local # or docker
  url: http://10.6.44.16:18080/convert/tts
  speed: 0.9
  device: 'cuda'
  language: 'ZH'
  speaker: 'ZH'

tesou:
  url: http://120.196.116.194:48891/chat/

TokenIDConverter:
  token_path: src/asr/resources/models/token_list.pkl
  unk_symbol: <unk>

CharTokenizer:
  symbol_value:
  space_symbol: <space>
  remove_non_linguistic_symbols: false

WavFrontend:
  cmvn_file: src/asr/resources/models/am.mvn
  frontend_conf:
    fs: 16000
    window: hamming
    n_mels: 80
    frame_length: 25
    frame_shift: 10
    lfr_m: 7
    lfr_n: 6
    filter_length_max: -.inf
    dither: 0.0

Model:
  model_path: src/asr/resources/models/model.onnx
  use_cuda: false
  CUDAExecutionProvider:
      device_id: 0
      arena_extend_strategy: kNextPowerOfTwo
      cudnn_conv_algo_search: EXHAUSTIVE
      do_copy_in_default_stream: true
  batch_size: 3
blackbox:
  lazyloading: true
Description
No description provided
Readme 27 MiB
Languages
Python 95.5%
Jupyter Notebook 3.2%
C++ 0.9%
Cython 0.3%
Dockerfile 0.1%