Commit b8cb3a8
feat: Moves to public CDN. (#2506)
* feat: Moves to public CDN.
* Points to Hosted CDN published models
* Adds new client hosted_model_client to download artifacts from CDN.
* Updates Candle to remove references to HF client. and fix issues if any with hooks
* feat: Migrate to hosted CDN model system and fix compilation issues
This commit implements a comprehensive migration from Hugging Face to a hosted CDN
model distribution system, along with several bug fixes and improvements:
## Core Changes:
- **Cargo.toml**: Update version to 1.13.2 and adjust dependencies
- **Cargo.lock**: Update dependency versions and remove unused packages
## Semantic Search Client Updates:
- **hosted_model_client.rs**: Enhanced CDN client with better error handling,
retry logic, and comprehensive test coverage for model downloads
- **async_implementation.rs**: Improved async model loading with better
error propagation and resource management
- **config.rs**: Streamlined configuration by removing unused imports
- **candle.rs**:
- Remove Hugging Face client dependencies and related code
- Fix compilation error by removing undefined ensure_model_files() function
- Replace with direct file existence checks in tests
- Simplify model loading logic for CDN-based artifacts
## CLI Updates:
- **knowledge.rs**: Remove unused imports and clean up code
## Key Benefits:
- Faster model downloads from CDN vs Hugging Face
- Better reliability with retry mechanisms
- Simplified dependency management
- Fixed compilation issues
- Enhanced test coverage
Files changed: 8 files, 314 insertions(+), 356 deletions(-)
---------
Co-authored-by: Kenneth S. <[email protected]>1 parent 23331b8 commit b8cb3a8
File tree
13 files changed
+518
-177
lines changed- crates
- chat-cli/src/cli/chat/tools
- semantic-search-client
- src
- client
- embedding
- processing
- tests
13 files changed
+518
-177
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | 16 | | |
19 | 17 | | |
20 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
36 | 39 | | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
42 | 45 | | |
43 | | - | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
| |||
0 commit comments