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
Download epoch_index.json from CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata: direct link, hf CLI and curl.
- Browser
- Download file 625 Bytes
-
https://huggingface.co/CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata/resolve/epoch-2/epoch_index.json
- Command line
-
hf download hf://CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata@epoch-2/epoch_index.json
-
curl -L -o epoch_index.json https://huggingface.co/CompassioninMachineLearning/OLMo-3-7B-CPT-BF16_olddata/resolve/epoch-2/epoch_index.json
625 Bytes
| { | |
| "repo_id": "CompassioninMachineLearning/OLMo-3-7B-CPT-BF16", | |
| "default_epoch": 2, | |
| "this_revision": "epoch-2", | |
| "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 | |
| } | |
| ] | |
| } | |