Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flujo-factory",
"version": "0.7.2",
"version": "0.7.3",
"description": "Durable FLUJO swarm engine and Factory SDK, CLI, and MCP server",
"license": "MIT",
"repository": {
Expand Down
4 changes: 3 additions & 1 deletion selfhost/modal/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,9 @@ def vllm_command(self):
'--reasoning-parser', self.reasoning_parser,
'--default-chat-template-kwargs', json.dumps(self.chat_template_kwargs())]
if self.trust_remote_code:
command += ['--trust-remote-code']
# The model's own code and tokenizer come from the same pinned revision as its weights; without these flags
# the Hub serves the default branch's code files (transformers warns "A new version ... was downloaded").
command += ['--trust-remote-code', '--code-revision', self.revision, '--tokenizer-revision', self.revision]
if self.gpu_count > 1:
command += ['--tensor-parallel-size', str(self.gpu_count)]
return command + list(self.extra_args) + self.variant_args()
Expand Down
4 changes: 4 additions & 0 deletions selfhost/modal/test_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ def test_nemotron_command_uses_the_release_image_mtp_and_hybrid_prefix_caching(s
self.assertEqual(command[command.index(pair[0]) + 1], pair[1])
for flag in ('--trust-remote-code', '--language-model-only', '--async-scheduling', '--enable-mamba-shared-prefix-checkpoint'):
self.assertIn(flag, command)
# remote code and tokenizer from the same pinned revision as the weights
for flag in ('--revision', '--code-revision', '--tokenizer-revision'):
self.assertEqual(command[command.index(flag) + 1], s.revision, flag)
self.assertNotIn('--code-revision', resolve(QWEN, 'qwen').vllm_command(), 'no remote code, nothing to pin')
self.assertEqual(json.loads(command[command.index('--speculative-config') + 1]), {'method': 'mtp', 'num_speculative_tokens': 1})
self.assertEqual(s.env, {'OMP_NUM_THREADS': '1'})
self.assertEqual(s.input_modalities, ('text',))
Expand Down
Loading