Out of Context Reasoning
Collection
4 items β’ Updated
How to use eac123/oocr-exp1b-e2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-generation", model="eac123/oocr-exp1b-e2") # Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("eac123/oocr-exp1b-e2")
model = AutoModelForCausalLM.from_pretrained("eac123/oocr-exp1b-e2")How to use eac123/oocr-exp1b-e2 with vLLM:
# Install vLLM from pip:
pip install vllm
# Start the vLLM server:
vllm serve "eac123/oocr-exp1b-e2"
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:8000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "eac123/oocr-exp1b-e2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'docker model run hf.co/eac123/oocr-exp1b-e2
How to use eac123/oocr-exp1b-e2 with SGLang:
# Install SGLang from pip:
pip install sglang
# Start the SGLang server:
python3 -m sglang.launch_server \
--model-path "eac123/oocr-exp1b-e2" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "eac123/oocr-exp1b-e2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'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 "eac123/oocr-exp1b-e2" \
--host 0.0.0.0 \
--port 30000
# Call the server using curl (OpenAI-compatible API):
curl -X POST "http://localhost:30000/v1/completions" \
-H "Content-Type: application/json" \
--data '{
"model": "eac123/oocr-exp1b-e2",
"prompt": "Once upon a time,",
"max_tokens": 512,
"temperature": 0.5
}'How to use eac123/oocr-exp1b-e2 with Docker Model Runner:
docker model run hf.co/eac123/oocr-exp1b-e2
axolotl version: 0.15.0
# ββ Continued Pretraining: 7B on 8ΓA40 (48GB) ββ
base_model: allenai/Olmo-3-1025-7B
tokenizer_type: AutoTokenizer
# ββ Data ββ
datasets:
- path: data/1b/all.jsonl
type: completion
field: completion
# ββ Sequence / packing ββ
sequence_len: 2048
sample_packing: true
pad_to_sequence_len: true
# NOTE: do NOT enable group_by_length with sample_packing
# ββ Batch sizing ββ
# Per-GPU: 4 seqs Γ 2048 tok = 8k tokens/step/GPU
# Global: 4 Γ 4 accum Γ 8 GPUs = 128 effective seqs/step
micro_batch_size: 4
gradient_accumulation_steps: 4
# ββ Training ββ
train_on_inputs: true
optimizer: adamw_torch
lr_scheduler: cosine
learning_rate: 5e-5
warmup_steps: 200
max_steps: 150
weight_decay: 0.01
# ββ Precision / memory ββ
bf16: true
flash_attention: true
gradient_checkpointing: true
# ββ DeepSpeed ZeRO Stage 2 ββ
deepspeed: ds_stage2.json
# ββ Logging ββ
logging_steps: 10
save_strategy: steps
save_steps: 50
This model is a fine-tuned version of allenai/Olmo-3-1025-7B on the data/1b/all.jsonl dataset.
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
Base model
allenai/Olmo-3-1025-7B