Instructions to use CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata") model = AutoModelForCausalLM.from_pretrained("CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata
- SGLang
How to use CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata 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 "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata" \ --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": "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata", "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 "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata" \ --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": "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata with Docker Model Runner:
docker model run hf.co/CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata
File size: 622 Bytes
483864c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | {
"repo_id": "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16",
"default_epoch": 2,
"this_revision": "main",
"this_epoch": 2,
"epochs": [
{
"epoch": 1,
"revision": "epoch-1",
"step": 375,
"eval_loss": 1.3267499208450317
},
{
"epoch": 2,
"revision": "epoch-2",
"step": 750,
"eval_loss": 1.3001196384429932
},
{
"epoch": 3,
"revision": "epoch-3",
"step": 1125,
"eval_loss": 1.3246490955352783
},
{
"epoch": 4,
"revision": "epoch-4",
"step": 1500,
"eval_loss": 1.3742924928665161
}
]
}
|