Skip to content

Commit d766092

Browse files
Make entire public API C-compatible (#58)
* main.c: remove hardcoded vec_dim * Make all public functions use C-compatible signatures * Move private declarations to clip.cpp * Merge with fix-zsl * Update examples * python: rm redundant bindings to CLIPLayer and models * formatting: apply formatting script * readme: add notices about the new API * zsl: use const auto & * tests: fix benchmark utility * python: bump version * Add constructor-like functions for batched structs --------- Co-authored-by: M. Yusuf Sarıgöz <[email protected]>
1 parent e7157f5 commit d766092

File tree

14 files changed

+269
-360
lines changed

14 files changed

+269
-360
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ This repo is aimed at powering useful applications based on such models on compu
1616
clip.cpp also has a short startup time compared to large ML frameworks, which makes it suitable for serverless deployments where the cold start is an issue.
1717

1818
## Hot topics
19+
- 09/14/2023: All functions are C-compatible now. `zsl` example is updated to match Huggingface's zero-shot behavior in the zero-shot pipeline.
1920
- 09/11/2023: Introduce Python bindings.
2021
- 07/12/2023: Batch inference support for image encoding.
2122
- 07/11/2023: Semantic image search [example](examples/image-search/README.md) directly in C++.

0 commit comments

Comments
 (0)