Swift 1.0

Swift 1.0 (myjellylabs/Swift-1.0) is a fast, open-weight multimodal assistant developed by MyJellyLab. It accepts Text, Image, and Audio inputs and generates Text outputs across a 128K-token context window, released in native bfloat16 under the Apache License 2.0.

Post-trained via a two-stage SFT + ORPO pipeline with frozen vision and audio encoders, Swift 1.0 is tailored for software engineering, agentic tool calling, finance and accounting, mathematics, hardware design, STEM reasoning, defensive cybersecurity, and startup operations.

Model Summary

Specification Details
Model Repository myjellylabs/Swift-1.0
Developer MyJellyLab
Input Modalities Text, Image, Audio
Output Modality Text
Context Window 128K tokens
Weights Format Native bfloat16 (safetensors, sharded)
Post-Training Stage 1 Multi-Domain SFT + Stage 2 ORPO Preference Alignment
Features Native function/tool calling, optional thinking mode (enable_thinking=True)
License Apache-2.0

Core Capabilities

  • Software Engineering & Agentic Tool Calling: Code generation, SQL synthesis, Bash/Linux scripting, and calibrated tool-calling decisions (knowing when to call a tool, ask clarifying questions, or answer directly).
  • Finance & Accounting: Financial statement QA, tabular numerical reasoning, multi-turn financial analysis, and accounting workflows.
  • Mathematics & STEM Reasoning: Competition math, step-by-step chain-of-thought derivations, and cross-disciplinary scientific reasoning.
  • Hardware & Systems Engineering: Verified Verilog RTL modules, CUDA/HPC parallel code optimization, and KiCad PCB netlist generation.
  • Deep Research & Startup Operations: Multi-step evidence synthesis, structured formatting constraints, and concise executive summarization.
  • Defensive Cybersecurity: Security analysis, vulnerability remediation, and defensive engineering guidance.
  • Multilingual Support: Natural responses in English, Hindi, Hinglish, Spanish, French, and German.

Quickstart

1. vLLM (>= 0.19.0)

Serve an OpenAI-compatible API endpoint in bfloat16:

vllm serve myjellylabs/Swift-1.0 --dtype bfloat16 --port 8000

Query the running server:

curl http://localhost:8000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{
    "model": "myjellylabs/Swift-1.0",
    "messages": [
      {"role": "user", "content": "Write a PostgreSQL query to find the top 3 customers by total spend in 2026."}
    ],
    "temperature": 0.2
  }'

2. Hugging Face transformers (>= 5.10.1)

pip install -U "transformers>=5.10.1" accelerate torch torchvision
import torch
from transformers import AutoProcessor, AutoModelForMultimodalLM

model_id = "myjellylabs/Swift-1.0"
processor = AutoProcessor.from_pretrained(model_id)
model = AutoModelForMultimodalLM.from_pretrained(
    model_id,
    dtype=torch.bfloat16,
    device_map="auto",
)

messages = [
    {"role": "user", "content": "Explain EBITDA and compute it if Revenue is $500M, COGS is $200M, and OpEx is $120M (including $30M D&A)."}
]

prompt = processor.apply_chat_template(
    messages,
    tokenize=False,
    add_generation_prompt=True,
    enable_thinking=False,  # Set to True for step-by-step reasoning mode
)
inputs = processor(text=prompt, return_tensors="pt").to(model.device)

with torch.no_grad():
    output_ids = model.generate(**inputs, max_new_tokens=512, do_sample=False)

response = processor.decode(output_ids[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True)
print(response.strip())

Post-Training Overview

  • Stage 1 (Supervised Fine-Tuning): 1 epoch across 9 curated domains with assistant-only loss masking, preserving general instruction-following and multimodal encoders.
  • Stage 2 (ORPO Preference Alignment): 1 epoch of Odds Ratio Preference Optimization for tool-calling precision, code quality, and consistent assistant behavior.
  • Precision Merge: Trained adapters were merged in float32 arithmetic into full bfloat16 weights while leaving vision, audio, and embedding layers untouched.

Intended Use & Limitations

  • Intended Use: Coding assistants, agentic tool-use pipelines, financial/technical analysis, hardware/RTL prototyping, and local multimodal assistants.
  • Text-Only Output: While Swift 1.0 understands image and audio inputs, it outputs text only (it does not generate speech or images directly; pair with a TTS model for voice output).
  • Verification: Always verify generated code, hardware designs, security recommendations, and financial calculations before production use.

License

Released under the Apache License 2.0. See the LICENSE file in this repository for full terms.

Downloads last month
30
Safetensors
Model size
8B params
Tensor type
BF16
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support