Instructions to use Lamsheeper/OLMo-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Lamsheeper/OLMo-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Lamsheeper/OLMo-base")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Lamsheeper/OLMo-base") model = AutoModelForCausalLM.from_pretrained("Lamsheeper/OLMo-base") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Lamsheeper/OLMo-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Lamsheeper/OLMo-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Lamsheeper/OLMo-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Lamsheeper/OLMo-base
- SGLang
How to use Lamsheeper/OLMo-base 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 "Lamsheeper/OLMo-base" \ --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": "Lamsheeper/OLMo-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Lamsheeper/OLMo-base" \ --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": "Lamsheeper/OLMo-base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Lamsheeper/OLMo-base with Docker Model Runner:
docker model run hf.co/Lamsheeper/OLMo-base
| library_name: transformers | |
| license: apache-2.0 | |
| tags: | |
| - fine-tuned | |
| - causal-lm | |
| - pytorch | |
| language: | |
| - en | |
| pipeline_tag: text-generation | |
| # OLMo-base | |
| This model was fine-tuned from a base model using custom training data. | |
| ## Model Details | |
| - **Model Type**: olmo2 | |
| - **Vocabulary Size**: 100578 | |
| - **Hidden Size**: 2048 | |
| - **Number of Layers**: 16 | |
| - **Number of Attention Heads**: 16 | |
| - **Upload Date**: 2026-06-05 10:39:36 | |
| ## Training Details | |
| - **Base Model**: Unknown | |
| - **Dataset**: Custom dataset | |
| - **Training Epochs**: Unknown | |
| - **Batch Size**: Unknown | |
| - **Learning Rate**: Unknown | |
| - **Max Length**: Unknown | |
| ## Usage | |
| ```python | |
| from transformers import AutoTokenizer, AutoModelForCausalLM | |
| tokenizer = AutoTokenizer.from_pretrained("Lamsheeper/OLMo-base") | |
| model = AutoModelForCausalLM.from_pretrained("Lamsheeper/OLMo-base") | |
| # Generate text | |
| input_text = "Your prompt here" | |
| inputs = tokenizer(input_text, return_tensors="pt") | |
| outputs = model.generate(**inputs, max_length=100, do_sample=True, temperature=0.7) | |
| response = tokenizer.decode(outputs[0], skip_special_tokens=True) | |
| print(response) | |
| ``` | |
| ## Files | |
| The following files are included in this repository: | |
| - `config.json`: Model configuration | |
| - `pytorch_model.bin` or `model.safetensors`: Model weights | |
| - `tokenizer.json`: Tokenizer configuration | |
| - `tokenizer_config.json`: Tokenizer settings | |
| - `special_tokens_map.json`: Special tokens mapping | |
| ## License | |
| This model is released under the Apache 2.0 license. | |