Metadata-Version: 2.4
Name: pyagentprolog-hf
Version: 1.0.2
Summary: Hugging Face integration for PyAgentProlog: PreTrainedModel, Pipeline, Hub upload.
Author-email: Andrey Vorfolomeev <binom0x@proton.me>
License-Expression: MIT
Project-URL: Homepage, https://github.com/binom0x/pyagentprolog
Project-URL: Repository, https://github.com/binom0x/pyagentprolog.git
Keywords: prolog,logic-programming,ai,agents,huggingface,transformers,neuro-symbolic,pyagentprolog
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
Classifier: Topic :: Software Development :: Interpreters
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: pyagentprolog<2.0.0,>=1.0.1
Requires-Dist: transformers<6.0,>=5.12.0
Requires-Dist: huggingface_hub<2.0,>=1.21.0
Requires-Dist: numpy<2.0,>=1.26.4
Provides-Extra: semantic-st
Requires-Dist: sentence-transformers<7.0,>=6.0.1; extra == "semantic-st"
Provides-Extra: semantic-ollama
Requires-Dist: langchain-ollama<2.0,>=1.0.1; extra == "semantic-ollama"
Provides-Extra: semantic
Requires-Dist: sentence-transformers<7.0,>=6.0.1; extra == "semantic"
Requires-Dist: langchain-ollama<2.0,>=1.0.1; extra == "semantic"
Provides-Extra: hub
Requires-Dist: huggingface_hub[cli]<2.0,>=1.21.0; extra == "hub"
Provides-Extra: numba
Requires-Dist: numba>=0.67.0; extra == "numba"
Provides-Extra: test
Requires-Dist: pytest>=8.0; extra == "test"
Requires-Dist: pytest-cov>=5.0; extra == "test"
Provides-Extra: all
Requires-Dist: sentence-transformers<7.0,>=6.0.1; extra == "all"
Requires-Dist: langchain-ollama<2.0,>=1.0.1; extra == "all"
Requires-Dist: huggingface_hub[cli]<2.0,>=1.21.0; extra == "all"
Requires-Dist: numba>=0.67.0; extra == "all"
Dynamic: license-file

# pyagentprolog-hf
> Hugging Face integration for PyAgentProlog

## Author

Andrey Vorfolomeev

Allows you to use the PyAgentProlog Prolog engine as a regular HF model:

* `PyAgentPrologModel.from_pretrained(...)` / `save_pretrained(...)`
* `AutoModel.from_pretrained(..., trust_remote_code=True)`
* `pipeline("prolog", model=...)`
* `push_to_hub(...)` for publishing models to the HF Hub

## Installation

```bash
# The core is installed automatically as a dependency
pip install pyagentprolog-hf

# With semantic unification (sentence-transformers)
pip install pyagentprolog-hf[semantic-st]

# With Ollama embeddings
pip install pyagentprolog-hf[semantic-ollama]

# With CLI for HF Hub
pip install pyagentprolog-hf[hub]

# Everything at once
pip install pyagentprolog-hf[all]
```

## License

MIT
