How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="squ11z1/claude-oss-350m")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("squ11z1/claude-oss-350m")
model = AutoModelForCausalLM.from_pretrained("squ11z1/claude-oss-350m", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

Claude OSS 350M

Disclaimer: This is not an official release by Anthropic.
Claude OSS 350M is an independent open model project.

claudeoss350

Overview

Claude OSS 350M is a compact assistant model built to bring a familiar Claude-style feel into an edge-sized model.

In simple terms: this is an attempt to capture the habitual Claude-style tone and interaction pattern in a lightweight 350M-class model that is easier to run in constrained environments.

The model was fine-tuned on open-source datasets, with a combined total of approximately 200,000 rows collected from Hugging Face. The training focus emphasized assistant behavior, conversational tone, instruction following, and consistent identity in a small-footprint setting.

Claude OSS 350M is intended for:

  • edge deployment
  • low-memory experimentation
  • lightweight assistant tasks
  • fast local inference
  • compact multilingual interaction

Downloads last month
529
Safetensors
Model size
0.4B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for squ11z1/claude-oss-350m

Finetuned
(63)
this model
Merges
15 models

Collection including squ11z1/claude-oss-350m