Closed ktagowski closed 1 year ago
TODO:
ONNX
Example usage (POC)
from embeddings.config.lightning_config import LightningBasicConfig from embeddings.pipeline.lightning_classification import LightningClassificationPipeline from embeddings.utils.hf_model_exporter import HuggingFaceModelExporter pipeline = LightningClassificationPipeline( embedding_name_or_path="hf-internal-testing/tiny-albert", devices="auto", accelerator="cpu", output_path=".", dataset_name_or_path="clarin-pl/polemo2-official", input_column_name=["text"], target_column_name="target", config=LightningBasicConfig(max_epochs=1) ) result = pipeline.run() HuggingFaceModelExporter("hf_model_export_test").export_model_from_pipeline(pipeline)
TODO:
ONNX
format- [ ] Wrap huggingface model upload (separate PR)Example usage (POC)