From 703ee0b9bafe4127680c575c361d33890d557206 Mon Sep 17 00:00:00 2001 From: "Ankush Pala ankush@lastmileai.dev" <> Date: Thu, 25 Jan 2024 13:50:44 -0500 Subject: [PATCH] [extensions] Update Public release of HuggingFace Extension 0.0.4 ->0.0.5 With the recent addition of the Inference Endpoint (Remote Inference) Model parsers, this extension is in need of a new public publish. 0.0.4 -> 0.0.5 https://pypi.org/project/aiconfig-extension-hugging-face/0.0.5/ --- extensions/HuggingFace/python/README.md | 4 +++- extensions/HuggingFace/python/pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/extensions/HuggingFace/python/README.md b/extensions/HuggingFace/python/README.md index 40cbbe9e5..d9c4a09dc 100644 --- a/extensions/HuggingFace/python/README.md +++ b/extensions/HuggingFace/python/README.md @@ -7,7 +7,7 @@ This extension contains AIConfig model parsers with two main subfolders: ### Part 1: Update and test this extension -If you are not testing locally (just using the published extension), ignore this and go to Part 2 +If you are not testing and developing locally (just using the published extension), ignore this and go to Part 2 1. From the `aiconfig/extensions/HuggingFace`, run this command: `pip3 install build && cd python && python -m build && pip3 install dist/*.whl` 2. Link your local dev environment to the current dir: `pip3 install -e .`. Afterwards if you do `pip3 list | grep aiconfig`, you should see this linked to your local path. If you ever wish to use the published extension, you will need to first remove the extension: `pip3 uninstall aiconfig-extension-hugging-face && pip3 install aiconfig-extension-hugging-face` @@ -15,6 +15,8 @@ If you are not testing locally (just using the published extension), ignore this ### Part 2: Importing and using this extension +``pip3 install aiconfig-extension-hugging-face`` + 1. Import the library to your code: `from aiconfig_extension_hugging_face import `. 2. Import the AIConfig model registery: `from aiconfig import ModelRegistryParser` 3. In code, add all the relevant model parser objects that you want to use from this extension to the registry. Ex: `ModelParserRegistry.register_model_parser(HuggingFaceTextGenerationTransformer())`. You can read the docstrings under `ModelParserRegistry` class for more info diff --git a/extensions/HuggingFace/python/pyproject.toml b/extensions/HuggingFace/python/pyproject.toml index cd8d03a08..c5eb7b8ef 100644 --- a/extensions/HuggingFace/python/pyproject.toml +++ b/extensions/HuggingFace/python/pyproject.toml @@ -3,7 +3,7 @@ requires = ["setuptools", "wheel"] [project] name = "aiconfig_extension_hugging_face" -version = "0.0.4" +version = "0.0.5" authors = [ { name="LastMile AI" }, { name="Rossdan Craig", email="rossdan@lastmileai.dev" },