Custom Models
Collection
Bunch of bad models • 3 items • Updated
How to use soyrsoyr/erebus-v2-1.5b-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="soyrsoyr/erebus-v2-1.5b-base")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("soyrsoyr/erebus-v2-1.5b-base")
model = AutoModelForCausalLM.from_pretrained("soyrsoyr/erebus-v2-1.5b-base", 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]:]))How to use soyrsoyr/erebus-v2-1.5b-base with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "soyrsoyr/erebus-v2-1.5b-base"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "soyrsoyr/erebus-v2-1.5b-base",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/soyrsoyr/erebus-v2-1.5b-base
How to use soyrsoyr/erebus-v2-1.5b-base with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "soyrsoyr/erebus-v2-1.5b-base" \
--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": "soyrsoyr/erebus-v2-1.5b-base",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'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 "soyrsoyr/erebus-v2-1.5b-base" \
--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": "soyrsoyr/erebus-v2-1.5b-base",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use soyrsoyr/erebus-v2-1.5b-base with Docker Model Runner:
docker model run hf.co/soyrsoyr/erebus-v2-1.5b-base
A 1.5B parameter causal language model pretrained from scratch using the Qwen3 architecture. This is the base (pretrained) model — see the instruct and tool-calling variants for fine-tuned versions.
| Parameters | 1.72B |
| Architecture | Qwen3 (28 layers, 24 heads, d_model=2048) |
| Vocab size | 151,669 (Qwen3 tokenizer) |
| Context length | 2,048 tokens |
| Precision | bf16 |
| Training tokens | 5.5B |
| Final loss | ~2.37 |
from transformers import AutoModelForCausalLM, AutoTokenizer
model = AutoModelForCausalLM.from_pretrained(
"soyrsoyr/erebus-v2-1.5b-base",
torch_dtype="bfloat16",
device_map="auto",
)
tokenizer = AutoTokenizer.from_pretrained("soyrsoyr/erebus-v2-1.5b-base")
inputs = tokenizer("The future of AI is", return_tensors="pt").to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(tokenizer.decode(outputs[0], skip_special_tokens=True))
| Variant | Description | Link |
|---|---|---|
| Base | Pretrained model (this) | soyrsoyr/erebus-v2-1.5b-base |
| Instruct | SFT on SmolTalk for chat/instruction following | soyrsoyr/erebus-v2-1.5b-instruct |
| Tool | SFT on xLAM for function calling | soyrsoyr/erebus-v2-1.5b-tool |
This is a small (1.5B) research model trained on a limited token budget (5.5B tokens). It is not intended for production use. Outputs may be incoherent, repetitive, or factually incorrect. The fine-tuned variants (instruct, tool) are significantly more useful for downstream tasks.
Apache 2.0