ConicCat/Gutenberg-SFT
Viewer • Updated • 293 • 80 • 2
How to use ConicCat/role-mo-V5-32B-Intermediate-LoRA with PEFT:
from peft import PeftModel
from transformers import AutoModelForCausalLM
base_model = AutoModelForCausalLM.from_pretrained("allenai/Olmo-3.1-32B-Instruct")
model = PeftModel.from_pretrained(base_model, "ConicCat/role-mo-V5-32B-Intermediate-LoRA")How to use ConicCat/role-mo-V5-32B-Intermediate-LoRA with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="ConicCat/role-mo-V5-32B-Intermediate-LoRA")
messages = [
{"role": "user", "content": "Who are you?"},
]
pipe(messages) # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ConicCat/role-mo-V5-32B-Intermediate-LoRA")
model = AutoModelForCausalLM.from_pretrained("ConicCat/role-mo-V5-32B-Intermediate-LoRA")
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 ConicCat/role-mo-V5-32B-Intermediate-LoRA with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "ConicCat/role-mo-V5-32B-Intermediate-LoRA"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/chat/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "ConicCat/role-mo-V5-32B-Intermediate-LoRA",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'docker model run hf.co/ConicCat/role-mo-V5-32B-Intermediate-LoRA
How to use ConicCat/role-mo-V5-32B-Intermediate-LoRA with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "ConicCat/role-mo-V5-32B-Intermediate-LoRA" \
--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": "ConicCat/role-mo-V5-32B-Intermediate-LoRA",
"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 "ConicCat/role-mo-V5-32B-Intermediate-LoRA" \
--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": "ConicCat/role-mo-V5-32B-Intermediate-LoRA",
"messages": [
{
"role": "user",
"content": "What is the capital of France?"
}
]
}'How to use ConicCat/role-mo-V5-32B-Intermediate-LoRA with Docker Model Runner:
docker model run hf.co/ConicCat/role-mo-V5-32B-Intermediate-LoRA
axolotl version: 0.15.0
base_model: allenai/Olmo-3.1-32B-Instruct
plugins:
- axolotl.integrations.liger.LigerPlugin
liger_rope: true
liger_rms_norm: true
liger_glu_activation: true
liger_layer_norm: true
liger_fused_linear_cross_entropy: true
load_in_8bit: false
load_in_4bit: false
lora_qkv_kernel: false
sequence_len: 6144
max_sample_length: 6144
sample_packing: true
gradient_checkpointing: true
bf16: true
tf32: true
chat_template: chatml
datasets:
- path: ConicCat/C2_Sonnet_4_5
type: chat_template
roles_to_train: []
message_field_training: train
- path: ConicCat/Gutenberg-SFT
type: chat_template
- path: ConicCat/Condor-SFT-Filtered
split: train[:250]
type: chat_template
- path: ConicCat/Ao3_Soft_Refusal
type: chat_template
- path: ConicCat/VSF
type: chat_template
adapter: lora
lora_r: 32
lora_alpha: 64
lora_dropout: 0.0
lora_bias: None
lora_target_linear: true
use_tensorboard: true
optimizer: paged_adamw_8bit
learning_rate: 2.5e-5 # 1e-4 / 4
loraplus_lr_ratio: 16
# Training arguments
output_dir: ./Olmo-Stage1
num_epochs: 3
micro_batch_size: 2
gradient_accumulation_steps: 8
save_strategy: 'no'
warmup_ratio: 0.05
lr_scheduler: 'constant_with_warmup'
max_grad_norm: 1
logging_steps: 1
seed: 42
special_tokens:
eos_token: "<|im_end|>"
This model is a fine-tuned version of allenai/Olmo-3.1-32B-Instruct on the ConicCat/C2_Sonnet_4_5, the ConicCat/Gutenberg-SFT, the ConicCat/Condor-SFT-Filtered, the ConicCat/Ao3_Soft_Refusal and the ConicCat/VSF datasets.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
allenai/Olmo-3-1125-32B