|
1 | 1 |  |
2 | 2 | [](https://github.com/ggml-org/llama.cpp/releases/tag/b9106) |
3 | 3 | [](https://central.sonatype.com/artifact/net.ladenthin/llama) |
4 | | -[](https://github.com/bernardladenthin/java-llama.cpp/releases/tag/snapshot) |
| 4 | +[](https://central.sonatype.com/repository/maven-snapshots/net/ladenthin/llama/) |
5 | 5 |
|
6 | 6 | # Java Bindings for [llama.cpp](https://github.com/ggerganov/llama.cpp) |
7 | 7 |
|
@@ -49,40 +49,29 @@ There are multiple [examples](src/test/java/examples). |
49 | 49 |
|
50 | 50 | ### Snapshot builds |
51 | 51 |
|
52 | | -Every push to `master` publishes a snapshot to [GitHub Packages](https://github.com/bernardladenthin/java-llama.cpp/packages) and attaches JARs to the [snapshot release](https://github.com/bernardladenthin/java-llama.cpp/releases/tag/snapshot). |
| 52 | +Every push to `main` publishes a snapshot to the [Sonatype Central snapshot repository](https://central.sonatype.com/repository/maven-snapshots/net/ladenthin/llama/). |
53 | 53 |
|
54 | | -To use the snapshot as a Maven dependency, add the repository and a GitHub token to your `~/.m2/settings.xml`: |
55 | | - |
56 | | -```xml |
57 | | -<settings> |
58 | | - <servers> |
59 | | - <server> |
60 | | - <id>github-java-llama</id> |
61 | | - <username>YOUR_GITHUB_USERNAME</username> |
62 | | - <password>YOUR_GITHUB_TOKEN</password> <!-- token needs read:packages scope --> |
63 | | - </server> |
64 | | - </servers> |
65 | | -</settings> |
66 | | -``` |
67 | | - |
68 | | -Then add to your `pom.xml`: |
| 54 | +To use the latest snapshot, add the repository and dependency to your `pom.xml`: |
69 | 55 |
|
70 | 56 | ```xml |
71 | 57 | <repositories> |
72 | 58 | <repository> |
73 | | - <id>github-java-llama</id> |
74 | | - <url>https://maven.pkg.github.com/bernardladenthin/java-llama.cpp</url> |
| 59 | + <id>sonatype-snapshots</id> |
| 60 | + <url>https://central.sonatype.com/repository/maven-snapshots/</url> |
75 | 61 | <snapshots><enabled>true</enabled></snapshots> |
| 62 | + <releases><enabled>false</enabled></releases> |
76 | 63 | </repository> |
77 | 64 | </repositories> |
78 | 65 |
|
79 | 66 | <dependency> |
80 | 67 | <groupId>net.ladenthin</groupId> |
81 | 68 | <artifactId>llama</artifactId> |
82 | | - <version>5.0.0-SNAPSHOT</version> |
| 69 | + <version>5.0.1-SNAPSHOT</version> |
83 | 70 | </dependency> |
84 | 71 | ``` |
85 | 72 |
|
| 73 | +No credentials are required — the repository is publicly readable. |
| 74 | + |
86 | 75 | ### No Setup required |
87 | 76 |
|
88 | 77 | We support CPU inference for the following platforms out of the box: |
|
0 commit comments