-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Create present #427
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Create present #427
Conversation
这是来自QQ邮箱的假期自动回复邮件。
您好,我最近正在休假中,无法亲自回复您的邮件。我将在假期结束后,尽快给您回复。
|
`# Copyright 2024 X.AI Corp. Licensed under the Apache License, Version 2.0 (the "License");you may not use this file except in compliance with the License.You may obtain a copy of the License athttp://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing, softwaredistributed under the License is distributed on an "AS IS" BASIS,WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.See the License for the specific language governing permissions andlimitations under the License.import bisect import haiku as hk import checkpoint as xai_checkpoint logger = logging.getLogger(name) TOP_K = 8 class SampleSettings(NamedTuple): class SampleOutput(NamedTuple): def insert_slice(memory: Memory, slice, length, i):
def pad_to_size(x, size): def top_p_filter(logits: jax.Array, top_p: jax.Array) -> jax.Array: def sample_token(
@DataClass
@DataClass @DataClass
def make_mesh( def sample_from_model(server, prompt, max_len, temperature): |
No description provided.