Archived
- #47: llama-server's request fields, routes and sampler order, and /props (with baKon's model entry: max_model_len, root and capabilities on /v1/models, and /v1/models/:id) - new APIs: Anthropic's Messages API (/v1/messages), OpenAI's Responses API (/v1/responses), llama-server's /completion and /infill, logprobs (OpenAI's logprobs and top_logprobs, up to 20; llama-server's n_probs), OpenAI's legacy `functions`, and X-Api-Key beside the bearer key - #4: --model takes a Hugging Face repo id (owner/name), fetched before startup into ~/.cache/radiance/hf or --download-dir and checked for changes at every start (redxherring) - #46: --tp 3 --tp-wire wht6 serves -- a three-rank two-shot all-reduce with uneven shards and the tiered-int8 wire over it (baKon); scripts/cardclock.py names what holds each card's clock under load (baKon) - CPU-only serving works again; --kernels names the kernel libraries to load; a model the loaded libraries cannot fully serve refuses at startup instead of failing its first request; --vram-kv-mib and --vram-weights-mib are gone (the split is automatic) - --embedding-placement ram is the default, and `auto` is gone - #40: Swift 1.5 recipes; rad-convert reads which shard holds a tensor from the index - #53: the pinned host pool gets huge pages where shmem THP is off; #57: a crash on video with an odd frame width is fixed
23 lines
789 B
C++
23 lines
789 B
C++
/* main.cpp -- the entry point. Everything it does is in engine.h's comment; this file only turns
|
|
* a command line into that sequence and a status into an exit code.
|
|
*/
|
|
#include "engine.h"
|
|
#include "hf_model.h"
|
|
|
|
int main(int argc, char** argv) {
|
|
rad::Config cfg;
|
|
int s = rad::config_parse(argc, argv, &cfg);
|
|
if (s == 1) { rad::config_usage(argv[0]); return 0; }
|
|
if (s < 0) { rad::config_usage(argv[0]); return 2; }
|
|
|
|
if (!rad::resolve_hf_model(cfg)) return 1; /* a repo id: fetched, and --model points at it */
|
|
|
|
rad::Engine engine(std::move(cfg));
|
|
|
|
s = engine.start();
|
|
if (s < 0) return 1; /* start() already said what and why */
|
|
|
|
if (engine.config().debug_graph) return engine.dump();
|
|
return engine.serve() < 0 ? 1 : 0;
|
|
}
|