together-core-workflow-a
Together AI core workflow a for inference, fine-tuning, and model deployment. Use when working with Together AI's OpenAI-compatible API. Trigger: "together core workflow a".
- License 许可
- MIT
- 最近更新
- 2026-07-13
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- together-core-workflow-a
- tags
- [ "saas", "ai", "inference", "together" ]
- author
- Jeremy Longshore <jeremy@intentsolutions.io>
- license
- MIT
- version
- 1.0.0
- description
- Together AI core workflow a for inference, fine-tuning, and model deployment. Use when working with Together AI's OpenAI-compatible API. Trigger: "together core workflow a".
- allowed-tools
- Read, Write, Edit, Bash(pip:*), Grep
- compatible-with
- claude-code
03 SKILL.md 正文
Together AI Core Workflow A
Overview
Fine-tune open-source models on your data with Together AI's fine-tuning API.
Instructions
Step 1: Prepare Training Data (JSONL)
import json
# Format: one JSON object per line with messages array
training_data = [
{"messages": [
{"role": "system", "content": "You are a customer support agent."},
{"role": "user", "content": "How do I reset my password?"},
{"role": "assistant", "content": "Go to Settings > Security > Reset Password."},
]},
{"messages": [
{"role": "user", "content": "What are your business hours?"},
{"role": "assistant", "content": "We're open Monday-Friday, 9 AM - 5 PM EST."},
]},
]
with open("training.jsonl", "w") as f:
for item in training_data:
f.write(json.dumps(item) + "\n")
Step 2: Upload Training File
from together import Together
client = Together()
# Upload file
file = client.files.upload(file="training.jsonl")
print(f"File ID: {file.id}")
Step 3: Create Fine-Tuning Job
job = client.fine_tuning.create(
training_file=file.id,
model="meta-llama/Llama-3.3-70B-Instruct-Turbo",
n_epochs=3,
learning_rate=1e-5,
batch_size=4,
suffix="my-support-bot",
)
print(f"Job ID: {job.id}, Status: {job.status}")
Step 4: Monitor Training
import time
while True:
status = client.fine_tuning.retrieve(job.id)
print(f"Status: {status.status}, Step: {status.training_steps_completed}")
if status.status in ("completed", "failed", "cancelled"):
break
time.sleep(30)
if status.status == "completed":
print(f"Fine-tuned model: {status.fine_tuned_model}")
Step 5: Use Fine-Tuned Model
response = client.chat.completions.create(
model=status.fine_tuned_model, # Your custom model ID
messages=[{"role": "user", "content": "How do I cancel my subscription?"}],
)
print(response.choices[0].message.content)
Error Handling
| Error | Cause | Solution |
|---|---|---|
| Invalid JSONL | Wrong format | Each line must be valid JSON with messages array |
| Training OOM | Batch size too large | Reduce batch_size |
| Job failed | Data quality issue | Check training file format |
Resources
Next Steps
For batch inference and dedicated endpoints, see together-core-workflow-b.
04 同仓库更多 Skills
zustand-store-creator
Create zustand store creator operations. Auto-activating skill for Frontend Development. Triggers on: zustand store creator, zustand store creator Part of the Frontend Development skill category. Use when working with zustand store creator functionality. Trigger with phrases like "zustand store creator", "zustand creator", "zustand".
zero-trust-config-helper
Configure with zero trust config helper operations. Auto-activating skill for Security Advanced. Triggers on: zero trust config helper, zero trust config helper Part of the Security Advanced skill category. Use when configuring systems or services. Trigger with phrases like "zero trust config helper", "zero helper", "zero".
zapier-integration-helper
Assist with zapier integration helper operations. Auto-activating skill for Business Automation. Triggers on: zapier integration helper, zapier integration helper Part of the Business Automation skill category. Use when working with APIs or building integrations. Trigger with phrases like "zapier integration helper", "zapier helper", "zapier".
yaml-config-validator
Validate yaml config validator operations. Auto-activating skill for DevOps Basics. Triggers on: yaml config validator, yaml config validator Part of the DevOps Basics skill category. Use when configuring systems or services. Trigger with phrases like "yaml config validator", "yaml validator", "yaml".
xvary-stock-research
Thesis-driven equity analysis from public SEC EDGAR and market data; /analyze, /score, /compare workflows with bundled Python tools (Claude Code, Cursor, Codex).
xss-vulnerability-scanner
Scan xss vulnerability scanner operations. Auto-activating skill for Security Fundamentals. Triggers on: xss vulnerability scanner, xss vulnerability scanner Part of the Security Fundamentals skill category. Use when working with xss vulnerability scanner functionality. Trigger with phrases like "xss vulnerability scanner", "xss scanner", "xss".