-
Notifications
You must be signed in to change notification settings - Fork 855
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create /embedding endpoint in new server
make -j o//llamafile/server/main o//llamafile/server/main -m /weights/all-MiniLM-L6-v2.F32.gguf curl http://127.0.0.1:8080/embedding?prompt=orange
- Loading branch information
Showing
29 changed files
with
907 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#ifndef LLAMAFILE_CRASH_H_ | ||
#define LLAMAFILE_CRASH_H_ | ||
#include <signal.h> | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
struct StackFrame; | ||
|
||
char *describe_crash(char *, size_t, int, siginfo_t *, void *); | ||
char *describe_backtrace(char *, size_t, const struct StackFrame *); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
#endif /* LLAMAFILE_CRASH_H_ */ |
Oops, something went wrong.