CAMEL-22545 new camel-huggingface component#21449
Conversation
| <dependency> | ||
| <groupId>ai.djl.python</groupId> | ||
| <artifactId>python</artifactId> | ||
| <version>0.28.0</version> |
There was a problem hiding this comment.
can this be externalised to the parent pom?
|
Please register the component here, so that it gets added to the catalog: |
5e20dbe to
d79b07c
Compare
f42691e to
f477103
Compare
|
Done, thanks for reviewing! |
| String doSample = config.getTemperature() > 0 ? "True" : "False"; | ||
| float temperature = config.getTemperature() > 0 ? config.getTemperature() : 1.0f; | ||
| String tokenClause = config.getAuthToken() != null ? ", token='" + config.getAuthToken() + "'" : ""; | ||
| return """ |
There was a problem hiding this comment.
@johnpoth this not a blocker, but what about moving the python code under the resources folder in its .py file? so that it can be retrieved and returned by these getPythonScript()
There was a problem hiding this comment.
Thanks @Croway for the feedback! I've implemented the changes
|
We have released so the version should be bumped to 4.19.0-SNAPSHOT and so forth |
f477103 to
fda3b7c
Compare
|
🌟 Thank you for your contribution to the Apache Camel project! 🌟 🐫 Apache Camel Committers, please review the following items:
|
c85f1e8 to
8611396
Compare
|
Ok I think we can merge now |
Description
https://issues.apache.org/jira/browse/CAMEL-22545
This introduces a new camel-huggingface component that provides an easy-to-use integration with the Hugging Face models. It leverages the Deep Java Library (DJL) Python engine to run Hugging Face Transformers pipelines directly.
For example, to use the Qwen2.5-3B-Instruct model:
Thanks !
Target
mainbranch)Tracking
Apache Camel coding standards and style
mvn clean install -DskipTestslocally from root folder and I have committed all auto-generated changes.