Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
97a98546
Unverified
Commit
97a98546
authored
Sep 29, 2025
by
Graham King
Committed by
GitHub
Sep 29, 2025
Browse files
chore: Remove revision from ModelDeploymentCard (#3293)
Signed-off-by:
Graham King
<
grahamk@nvidia.com
>
parent
e3df305b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
+3
-10
lib/llm/src/model_card.rs
lib/llm/src/model_card.rs
+3
-10
No files found.
lib/llm/src/model_card.rs
View file @
97a98546
...
...
@@ -11,7 +11,6 @@
//! - Model information (ModelInfoType)
//! - Tokenizer configuration (TokenizerKind)
//! - Prompt formatter settings (PromptFormatterArtifact)
//! - Various metadata like revision, publish time, etc.
use
std
::
fmt
;
use
std
::
fs
::
File
;
...
...
@@ -122,10 +121,6 @@ pub struct ModelDeploymentCard {
/// When this card was last advertised by a worker. None if not yet published.
pub
last_published
:
Option
<
chrono
::
DateTime
<
chrono
::
Utc
>>
,
/// Incrementing count of how many times we published this card
#[serde(default,
skip_serializing)]
pub
revision
:
u64
,
/// Max context (in number of tokens) this model can handle
pub
context_length
:
u32
,
...
...
@@ -496,7 +491,6 @@ impl ModelDeploymentCard {
prompt_formatter
:
Some
(
PromptFormatterArtifact
::
GGUF
(
gguf_file
.to_path_buf
())),
chat_template_file
:
None
,
prompt_context
:
None
,
// TODO - auto-detect prompt context
revision
:
0
,
last_published
:
None
,
context_length
,
kv_cache_block_size
:
0
,
...
...
@@ -560,7 +554,6 @@ impl ModelDeploymentCard {
prompt_formatter
:
PromptFormatterArtifact
::
from_repo
(
repo_id
)
?
,
chat_template_file
,
prompt_context
:
None
,
// TODO - auto-detect prompt context
revision
:
0
,
last_published
:
None
,
context_length
,
kv_cache_block_size
:
0
,
// set later
...
...
@@ -572,14 +565,14 @@ impl ModelDeploymentCard {
}
}
/// A ModelDeploymentCard is published a single time per instance and never updated.
impl
Versioned
for
ModelDeploymentCard
{
fn
revision
(
&
self
)
->
u64
{
self
.revision
0
}
fn
set_revision
(
&
mut
self
,
revision
:
u64
)
{
fn
set_revision
(
&
mut
self
,
_
revision
:
u64
)
{
self
.last_published
=
Some
(
chrono
::
Utc
::
now
());
self
.revision
=
revision
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment