Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

For max tokens using max new tokens instead of max_length#1220

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SilasMarvin merged 1 commit intomasterfromsanti-opensource-ai-max-tokens
Dec 6, 2023
Merged
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
using max new tokens instead of max_length
  • Loading branch information
@santiadavani
santiadavani committedDec 6, 2023
commit640decb15a87deac3567897b00a67fde2974b94e
4 changes: 2 additions & 2 deletionspgml-sdks/pgml/src/open_source_ai.rs
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -236,7 +236,7 @@ mistralai/Mistral-7B-v0.1
let md5_digest = md5::compute(to_hash.as_bytes());
let fingerprint = uuid::Uuid::from_slice(&md5_digest.0)?;

let mut args = serde_json::json!({ "max_length": max_tokens, "temperature": temperature, "do_sample": true, "num_return_sequences": n });
let mut args = serde_json::json!({ "max_new_tokens": max_tokens, "temperature": temperature, "do_sample": true, "num_return_sequences": n });
if let Some(t) = chat_template
.or_else(|| try_get_model_chat_template(&model_name).map(|s| s.to_string()))
{
Expand DownExpand Up@@ -322,7 +322,7 @@ mistralai/Mistral-7B-v0.1
let md5_digest = md5::compute(to_hash.as_bytes());
let fingerprint = uuid::Uuid::from_slice(&md5_digest.0)?;

let mut args = serde_json::json!({ "max_length": max_tokens, "temperature": temperature, "do_sample": true, "num_return_sequences": n });
let mut args = serde_json::json!({ "max_new_tokens": max_tokens, "temperature": temperature, "do_sample": true, "num_return_sequences": n });
if let Some(t) = chat_template
.or_else(|| try_get_model_chat_template(&model_name).map(|s| s.to_string()))
{
Expand Down

[8]ページ先頭

©2009-2025 Movatter.jp