Text Generation
Transformers
Safetensors
GGUF
English
causal-lm
qwen2.5
reasoning
code-generation
Mixture of Experts
qlora
multimodal
tool-use
Eval Results (legacy)
conversational
Instructions to use ram1234598766/Cesium2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ram1234598766/Cesium2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ram1234598766/Cesium2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("ram1234598766/Cesium2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ram1234598766/Cesium2 with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ram1234598766/Cesium2:Q8_0 # Run inference directly in the terminal: llama cli -hf ram1234598766/Cesium2:Q8_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ram1234598766/Cesium2:Q8_0 # Run inference directly in the terminal: llama cli -hf ram1234598766/Cesium2:Q8_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf ram1234598766/Cesium2:Q8_0 # Run inference directly in the terminal: ./llama-cli -hf ram1234598766/Cesium2:Q8_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf ram1234598766/Cesium2:Q8_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf ram1234598766/Cesium2:Q8_0
Use Docker
docker model run hf.co/ram1234598766/Cesium2:Q8_0
- LM Studio
- Jan
- vLLM
How to use ram1234598766/Cesium2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ram1234598766/Cesium2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ram1234598766/Cesium2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ram1234598766/Cesium2:Q8_0
- SGLang
How to use ram1234598766/Cesium2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "ram1234598766/Cesium2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ram1234598766/Cesium2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "ram1234598766/Cesium2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ram1234598766/Cesium2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use ram1234598766/Cesium2 with Ollama:
ollama run hf.co/ram1234598766/Cesium2:Q8_0
- Unsloth Studio
How to use ram1234598766/Cesium2 with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ram1234598766/Cesium2 to start chatting
Install Unsloth Studio (Windows)
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for ram1234598766/Cesium2 to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ram1234598766/Cesium2 to start chatting
- Pi
How to use ram1234598766/Cesium2 with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ram1234598766/Cesium2:Q8_0
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "ram1234598766/Cesium2:Q8_0" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Docker Model Runner
How to use ram1234598766/Cesium2 with Docker Model Runner:
docker model run hf.co/ram1234598766/Cesium2:Q8_0
- Lemonade
How to use ram1234598766/Cesium2 with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ram1234598766/Cesium2:Q8_0
Run and chat with the model
lemonade run user.Cesium2-Q8_0
List all available models
lemonade list
- Hermes Agent
How to use ram1234598766/Cesium2 with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ram1234598766/Cesium2:Q8_0
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default ram1234598766/Cesium2:Q8_0
Run Hermes
hermes
- Atomic Chat
- OpenClaw
How to use ram1234598766/Cesium2 with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ram1234598766/Cesium2:Q8_0
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ram1234598766/Cesium2:Q8_0" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
File size: 17,436 Bytes
82f262a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 | """
Skill Generator — Free dataset generation for new skills.
Uses HuggingFace datasets for high-quality training data.
No API key needed.
"""
import json
import random
from pathlib import Path
from typing import List, Dict, Optional
from dataclasses import dataclass
try:
from datasets import load_dataset
HAS_DATASETS = True
except ImportError:
HAS_DATASETS = False
@dataclass
class SkillTemplate:
name: str
description: str
token: str
trigger_patterns: List[str]
system_prompt: str
question_templates: List[str]
num_examples: int = 200
def generate_examples(self) -> List[Dict[str, str]]:
examples = []
# Try to use HuggingFace datasets for higher quality
if HAS_DATASETS:
examples = self._generate_from_hf()
# Fallback to template-based if HF fails
if not examples:
examples = self._generate_from_templates()
return examples
def _generate_from_hf(self) -> List[Dict[str, str]]:
"""Generate examples from HuggingFace datasets"""
examples = []
try:
if self.name == "code_expert":
ds = load_dataset("sahil2801/CodeAlpaca-20k", split="train", streaming=True)
for i, row in enumerate(ds):
if i >= self.num_examples:
break
examples.append({
"prompt": row["instruction"],
"response": row["output"],
"skill_token": self.token,
"system_prompt": self.system_prompt
})
elif self.name == "math_solver":
ds = load_dataset("openai/gsm8k", "main", split="train", streaming=True)
for i, row in enumerate(ds):
if i >= self.num_examples:
break
examples.append({
"prompt": row["question"],
"response": row["answer"],
"skill_token": self.token,
"system_prompt": self.system_prompt
})
elif self.name == "creative_writer":
ds = load_dataset("HuggingFaceH4/ultrachat_200k", "default", split="train_sft", streaming=True)
for i, row in enumerate(ds):
if i >= self.num_examples * 3:
break
# Extract first user/assistant pair
if row.get("messages"):
msgs = row["messages"]
for j in range(len(msgs) - 1):
if msgs[j].get("role") == "user" and msgs[j + 1].get("role") == "assistant":
examples.append({
"prompt": msgs[j]["content"],
"response": msgs[j + 1]["content"],
"skill_token": self.token,
"system_prompt": self.system_prompt
})
break
if len(examples) >= self.num_examples:
break
elif self.name == "data_analyst":
ds = load_dataset("HuggingFaceH4/ultrachat_200k", "default", split="train_sft", streaming=True)
for i, row in enumerate(ds):
if i >= self.num_examples * 10:
break
if row.get("messages"):
msgs = row["messages"]
# find first user->assistant pair mentioning data topics
for j in range(len(msgs) - 1):
if msgs[j].get("role") == "user" and msgs[j + 1].get("role") == "assistant":
if any(w in msgs[j]["content"].lower() for w in ["data", "analyze", "chart", "statistics", "dataset", "visualization"]):
examples.append({
"prompt": msgs[j]["content"],
"response": msgs[j + 1]["content"],
"skill_token": self.token,
"system_prompt": self.system_prompt
})
break
if len(examples) >= self.num_examples:
break
if len(examples) >= self.num_examples:
break
elif self.name == "translator":
ds = load_dataset("Helsinki-NLP/opus-100", "en-fr", split="train", streaming=True)
for i, row in enumerate(ds):
if i >= self.num_examples:
break
tr = row.get("translation", {})
en, fr = tr.get("en", ""), tr.get("fr", "")
if not en or not fr:
continue
examples.append({
"prompt": f"Translate to French: {en}",
"response": fr,
"skill_token": self.token,
"system_prompt": self.system_prompt
})
elif self.name == "reasoning":
ds = load_dataset("openai/gsm8k", "main", split="train", streaming=True)
for i, row in enumerate(ds):
if i >= self.num_examples:
break
examples.append({
"prompt": f"Solve step by step: {row['question']}",
"response": row["answer"],
"skill_token": self.token,
"system_prompt": self.system_prompt
})
except Exception as e:
print(f"Warning: Could not load HF dataset for {self.name}: {e}")
examples = []
return examples
def _generate_from_templates(self) -> List[Dict[str, str]]:
"""Fallback template-based generation"""
placeholders = {
'action': ['sort a list', 'reverse a string', 'find duplicates', 'validate email', 'parse JSON', 'merge dictionaries'],
'code_snippet': ['def foo(): pass', 'x = [1,2,3]', 'for i in range(10): print(i)'],
'concept': ['recursion', 'closures', 'decorators', 'generators', 'async/await', 'OOP'],
'framework': ['Flask', 'FastAPI', 'Django', 'React', 'pandas', 'PyTorch'],
'algorithm': ['binary search', 'quicksort', 'merge sort', 'BFS', 'DFS', 'dynamic programming'],
'function': ['sin(x)', 'x^2 + 2x + 1', 'e^x', '1/x', 'log(x)'],
'equation': ['2x + 5 = 15', 'x^2 - 4 = 0', '3x + 2y = 12'],
'theorem': ['Pythagorean theorem', 'binomial theorem', 'intermediate value theorem'],
'system_eq': ['x + y = 10, x - y = 4', '2x + y = 7, x - 3y = -5'],
'polynomial': ['x^2 - 5x + 6', 'x^3 - 2x^2 - x + 2'],
'topic': ['space exploration', 'artificial intelligence', 'climate change', 'technology', 'nature'],
'genre': ['science fiction', 'mystery', 'fantasy', 'horror', 'thriller'],
'setting': ['Mars colony', 'medieval kingdom', 'underwater city', 'parallel universe'],
'characters': ['a robot and a human', 'time travelers', 'detective and suspect'],
'scene': ['a bustling marketplace', 'an abandoned spaceship', 'a magical forest'],
'character_type': ['anti-hero', 'reluctant mentor', 'mad scientist'],
'dataset_desc': ['sales data for Q1-Q4', 'customer survey responses', 'website traffic logs'],
'data': ['monthly revenue', 'user engagement metrics', 'weather data', 'stock prices'],
'data_type': ['time series', 'categorical', 'geospatial'],
'ml_problem': ['customer churn', 'image classification', 'sentiment analysis'],
'language': ['Spanish', 'French', 'German', 'Japanese', 'Chinese'],
'text': ['Hello, how are you?', 'The weather is nice', 'I love programming'],
'phrase': ['good morning', 'how much', 'where is', 'nice to meet you'],
'puzzle': ['Three switches control three bulbs', 'You have 8 balls, one heavier'],
'premises': ['all humans are mortal', 'Socrates is human', 'All birds can fly'],
'riddle': ['What has keys but no locks?', 'I speak without a mouth'],
'sequence': ['2, 4, 8, 16, ?', '1, 1, 2, 3, 5, ?'],
}
examples = []
for i in range(self.num_examples):
q_template = random.choice(self.question_templates)
params = {k: random.choice(v) for k, v in placeholders.items()}
question = q_template.format(**params)
examples.append({
"prompt": question,
"skill_token": self.token,
"system_prompt": self.system_prompt
})
return examples
def save_dataset(self, output_path: str):
examples = self.generate_examples()
path = Path(output_path)
path.parent.mkdir(parents=True, exist_ok=True)
# One JSON object per line (JSONL). load_jsonl in train.py / the
# notebook parses each line back into a dict, so a multi-line ChatML
# blob would get fragmented into one broken example per line.
with open(path, 'w', encoding='utf-8') as f:
for ex in examples:
row = {
"prompt": ex.get("prompt", ex.get("question", "")),
"response": ex.get("response", "Here is a helpful response."),
"skill_token": ex.get("skill_token", ""),
"system_prompt": ex.get("system_prompt", ""),
}
f.write(json.dumps(row, ensure_ascii=False) + "\n")
print(f"Generated {len(examples)} examples -> {path}")
return examples
def save_skill_file(self, output_path: str):
skill_data = {
"name": self.name,
"token": self.token,
"description": self.description,
"trigger_patterns": self.trigger_patterns,
"system_prompt": self.system_prompt,
"num_examples": self.num_examples
}
path = Path(output_path)
path.parent.mkdir(parents=True, exist_ok=True)
with open(path, 'w') as f:
json.dump(skill_data, f, indent=2)
print(f"Skill template saved -> {path}")
SKILL_TEMPLATES = {
"code_expert": SkillTemplate(
name="code_expert",
description="Expert programmer - writes, debugs, and explains code",
token="<SKILL:code>",
trigger_patterns=["code", "python", "function", "debug", "program", "script", "algorithm", "api"],
system_prompt="You are an expert programmer. Write clean, efficient, well-documented code. Always explain your approach.",
question_templates=[
"Write a Python function that {action}",
"Create a {action} in Python",
"Debug this code: {code_snippet}",
"Explain how {concept} works in programming",
"Write a {action} using {framework}",
"Optimize this function for performance: {code_snippet}",
"Implement {algorithm} in Python",
"Create a REST API endpoint for {action}",
],
num_examples=200
),
"math_solver": SkillTemplate(
name="math_solver",
description="Advanced mathematics - solves equations, proofs, and problems step by step",
token="<SKILL:math>",
trigger_patterns=["math", "equation", "solve", "calculate", "proof", "theorem", "integral", "derivative", "algebra", "calculus"],
system_prompt="You are a mathematics expert. Show all steps clearly. Verify your answers.",
question_templates=[
"Solve for x: {equation}",
"Find the derivative of {function}",
"Calculate the integral of {function}",
"Prove that {theorem}",
"Solve this system of equations: {system_eq}",
"Find the limit as x approaches a value",
"Factorize {polynomial}",
"Solve the differential equation: {equation}",
],
num_examples=200
),
"creative_writer": SkillTemplate(
name="creative_writer",
description="Creative writing - stories, poems, essays, and scripts",
token="<SKILL:write>",
trigger_patterns=["write", "story", "poem", "essay", "creative", "script", "narrative", "fiction"],
system_prompt="You are a creative writer. Be imaginative, vivid, and engaging. Use strong imagery and varied sentence structure.",
question_templates=[
"Write a short story about {topic}",
"Compose a poem about {topic}",
"Write an essay on {topic}",
"Create a dialogue between {characters}",
"Write a {genre} story set in {setting}",
"Describe {scene} in vivid detail",
"Write a sonnet about {topic}",
"Create a character description for a {character_type}",
],
num_examples=150
),
"data_analyst": SkillTemplate(
name="data_analyst",
description="Data analysis - interprets data, creates insights, suggests visualizations",
token="<SKILL:data>",
trigger_patterns=["data", "analyze", "statistics", "chart", "graph", "dataset", "pandas", "visualization"],
system_prompt="You are a data analyst. Be precise with numbers. Suggest appropriate visualizations. Explain your methodology.",
question_templates=[
"Analyze this dataset: {dataset_desc}",
"What insights can you find in this data: {data}",
"Create a visualization plan for {data_type}",
"Calculate statistics for: {data}",
"What trends do you see in {data}",
"Suggest a machine learning approach for {ml_problem}",
"Clean and preprocess this data: {dataset_desc}",
],
num_examples=150
),
"translator": SkillTemplate(
name="translator",
description="Multi-language translator - accurate, context-aware translation",
token="<SKILL:translate>",
trigger_patterns=["translate", "translation", "spanish", "french", "german", "chinese", "japanese", "language"],
system_prompt="You are a professional translator. Preserve tone, context, and cultural nuances. Provide both translation and explanation.",
question_templates=[
"Translate to {language}: {text}",
"How do you say {phrase} in {language}?",
"Translate this {language} text to English: {text}",
"What's the {language} equivalent of {phrase}?",
"Translate and explain the cultural context: {text}",
],
num_examples=200
),
"reasoning": SkillTemplate(
name="reasoning",
description="Logical reasoning - solves puzzles, logic problems, and analytical questions",
token="<SKILL:logic>",
trigger_patterns=["logic", "puzzle", "riddle", "reason", "think", "analyze", "deduce", "infer"],
system_prompt="You are a logical reasoning expert. Break problems into steps. Consider all possibilities before concluding.",
question_templates=[
"Solve this logic puzzle: {puzzle}",
"If {premises}, what can we conclude?",
"Deduce the answer: {puzzle}",
"Solve this riddle: {riddle}",
"What's the pattern in: {sequence}",
"Reason through this problem: {puzzle}",
"If all A are B, and some B are C, then what follows?",
],
num_examples=150
)
}
def generate_all_skills(output_dir: str = "skills"):
output_path = Path(output_dir)
output_path.mkdir(parents=True, exist_ok=True)
for skill_name, template in SKILL_TEMPLATES.items():
dataset_path = output_path.parent / "datasets" / f"{skill_name}_dataset.jsonl"
skill_path = output_path / f"{skill_name}.skill"
template.save_dataset(str(dataset_path))
template.save_skill_file(str(skill_path))
print(f"\nGenerated {len(SKILL_TEMPLATES)} skills in {output_path}")
def generate_custom_skill(
name: str,
description: str,
trigger_patterns: List[str],
system_prompt: str,
num_examples: int = 100,
output_dir: str = "skills"
):
token = f"<SKILL:{name}>"
template = SkillTemplate(
name=name,
description=description,
token=token,
trigger_patterns=trigger_patterns,
system_prompt=system_prompt,
question_templates=["{question}"],
num_examples=num_examples
)
output_path = Path(output_dir)
output_path.mkdir(parents=True, exist_ok=True)
dataset_path = output_path.parent / "datasets" / f"{name}_dataset.jsonl"
skill_path = output_path / f"{name}.skill"
template.save_dataset(str(dataset_path))
template.save_skill_file(str(skill_path))
print(f"Custom skill '{name}' generated")
return template
if __name__ == "__main__":
generate_all_skills("skills")
|