Skip to content

Commit

Permalink
Merge pull request conda-forge#28118 from jeongseok-meta/add_mistral_…
Browse files Browse the repository at this point in the history
…inference

Add mistral-inference
  • Loading branch information
ocefpaf authored Nov 12, 2024
2 parents 6084c93 + ff6ec47 commit a6fcfbd
Show file tree
Hide file tree
Showing 2 changed files with 106 additions and 0 deletions.
53 changes: 53 additions & 0 deletions recipes/mistral-common/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% set name = "mistral-common" %}
{% set version = "1.4.4" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/mistral_common-{{ version }}.tar.gz
sha256: 110e1b937aee99fdcf3cefc6b4e924e7e22ff445246090fe9215051245caa59c

build:
number: 0
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
skip: true # [osx or win]

requirements:
build:
- {{ compiler("cxx") }}
- {{ stdlib("c") }}
host:
- pip
- python
- pytorch
- setuptools
- setuptools_scm
- poetry
run:
- python
- jsonschema
- pillow <11.0.0,>=10.3.0
- pydantic
- requests
- sentencepiece
- tiktoken <0.8.0,>=0.7.0

test:
imports:
- mistral_common
commands:
- pip check
requires:
- pip

about:
home: https://github.com/mistralai/mistral-common
summary: Set of tools to help you work with Mistral models
license: Apache-2.0
license_file: LICENCE

extra:
recipe-maintainers:
- jeongseok-meta
53 changes: 53 additions & 0 deletions recipes/mistral-inference/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{% set name = "mistral-inference" %}
{% set version = "1.4.0" %}

package:
name: {{ name|lower }}
version: {{ version }}

source:
url: https://pypi.org/packages/source/{{ name[0] }}/{{ name }}/mistral_inference-{{ version }}.tar.gz
sha256: c3614d6eaf9b2c059cd6cb6e1462f65ac8f0bab8540fa241670d020fc70ad469

build:
number: 0
script: {{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
skip: true # [osx or win]

requirements:
build:
- {{ compiler("cxx") }}
- {{ stdlib("c") }}
host:
- pip
- python
- pytorch
- setuptools
- setuptools_scm
- poetry
run:
- python
- fire
- mistral-common
- pillow
- safetensors
- simple-parsing
- xformers

test:
imports:
- mistral_inference
commands:
- pip check
requires:
- pip

about:
home: https://github.com/mistralai/mistral-inference
summary: Official inference library for Mistral models
license: Apache-2.0
license_file: LICENSE

extra:
recipe-maintainers:
- jeongseok-meta

0 comments on commit a6fcfbd

Please sign in to comment.