Archived
radiance 1.0.4
- oh-my-pi works unmodified on every Qwen model. Its requests carry a top-level
preserve_thinking, which was refused as an unknown field; it now reaches the chat template the
way enable_thinking does. Its task tool's `model` parameter is the `not` of every JSON type,
which the 1.0.1 fix did not cover: any `not` that excludes every value is now an argument no
call writes, under every chat template and Flash-Next's declared format.
- Command-line defaults and bounds for what a request leaves out. A flag left unset changes
nothing; /server_info reports the values under request_defaults.
- Sampling: --typical-p, --presence-penalty, --frequency-penalty, --repetition-penalty,
--repeat-last-n, --dry-multiplier, --dry-base, --dry-allowed-length, --dry-penalty-last-n,
--dry-sequence-breakers, --xtc-probability, --xtc-threshold.
- Requests: --default-max-tokens N|auto, --max-tokens-cap, --max-n, --max-queued-requests,
--max-stop-strings, --max-stop-bytes.
- Chat template: --chat-template-kwargs JSON|@FILE sets template variables a request's own
chat_template_kwargs override; --reasoning-format auto|none.
- HTTP: --http-threads, --read-timeout, --write-timeout, --keep-alive-timeout, --max-body-mib,
--retry-after, --no-cors.
- Media: --image-min-pixels, --image-max-pixels, --video-min-pixels, --video-max-pixels,
--video-fps, --video-min-frames, --video-max-frames, --video-max-frame-tokens,
--max-source-pixels.
- Under --reasoning-effort none or minimal, a request that sets enable_thinking true now thinks
instead of having the deployment default override it.
- --temp, --top-p, --min-p and --top-k refuse a value that is not a number instead of reading
it as 0.
This commit is contained in:
1 parent
d008fdb32b
commit
09fb41735b
23 files changed
+2478
-104
No files matched your search
+24
-4
@@ -59,10 +59,9 @@ int VisionConfig::from_meta(const RadModelMeta& m, std::string* why) {
|
||||
max_frame_rows = (int32_t)rad_meta_geti(&m, "video_preprocessor.max_video_tokens", 768);
|
||||
read_triple(m, "preprocessor.image_mean", mean);
|
||||
read_triple(m, "preprocessor.image_std", stdv);
|
||||
if (image_min_pixels <= 0 || image_max_pixels < image_min_pixels || video_min_pixels <= 0 ||
|
||||
video_max_pixels < video_min_pixels || !(fps > 0.0) || min_frames < 1 ||
|
||||
max_frames < min_frames) {
|
||||
if (why) *why = "the container's preprocessor configuration is inconsistent";
|
||||
std::string bad;
|
||||
if (check(&bad) < 0) {
|
||||
if (why) *why = "the container's preprocessor configuration is inconsistent: " + bad;
|
||||
return RAD_E_INVAL;
|
||||
}
|
||||
for (int c = 0; c < 3; ++c)
|
||||
@@ -73,6 +72,27 @@ int VisionConfig::from_meta(const RadModelMeta& m, std::string* why) {
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
int VisionConfig::check(std::string* why) const {
|
||||
auto no = [why](const std::string& w) {
|
||||
if (why) *why = w;
|
||||
return RAD_E_INVAL;
|
||||
};
|
||||
if (image_min_pixels <= 0) return no("image_min_pixels must be positive");
|
||||
if (image_max_pixels < image_min_pixels)
|
||||
return no("image_max_pixels " + std::to_string(image_max_pixels) + " is below image_min_pixels " +
|
||||
std::to_string(image_min_pixels));
|
||||
if (video_min_pixels <= 0) return no("video_min_pixels must be positive");
|
||||
if (video_max_pixels < video_min_pixels)
|
||||
return no("video_max_pixels " + std::to_string(video_max_pixels) + " is below video_min_pixels " +
|
||||
std::to_string(video_min_pixels));
|
||||
if (!(fps > 0.0)) return no("fps must be positive");
|
||||
if (min_frames < 1) return no("min_frames must be at least 1");
|
||||
if (max_frames < min_frames)
|
||||
return no("max_frames " + std::to_string(max_frames) + " is below min_frames " +
|
||||
std::to_string(min_frames));
|
||||
return RAD_OK;
|
||||
}
|
||||
|
||||
/* ================================================================== sizes and sampling */
|
||||
|
||||
/* Python's round(), which is round-half-to-even on the double -- the reference computes these in
|
||||
|
||||
Reference in new issue
Block a user