Text Generation
Transformers
Safetensors
olmo_hybrid
risc-v
compiled-weights
olmo-hybrid
gated-deltanet
tool-use
conversational
Instructions to use jgalego/olmputer with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jgalego/olmputer with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jgalego/olmputer") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jgalego/olmputer") model = AutoModelForCausalLM.from_pretrained("jgalego/olmputer", device_map="auto") 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=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jgalego/olmputer with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jgalego/olmputer" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jgalego/olmputer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/jgalego/olmputer
- SGLang
How to use jgalego/olmputer 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 "jgalego/olmputer" \ --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": "jgalego/olmputer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "jgalego/olmputer" \ --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": "jgalego/olmputer", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use jgalego/olmputer with Docker Model Runner:
docker model run hf.co/jgalego/olmputer
Add parity results
Browse files- results/parity.json +25 -25
results/parity.json
CHANGED
|
@@ -56,20 +56,20 @@
|
|
| 56 |
0.9882352948188782
|
| 57 |
],
|
| 58 |
"greedy_identical": [
|
| 59 |
-
|
| 60 |
-
|
| 61 |
-
|
| 62 |
-
false,
|
| 63 |
-
false,
|
| 64 |
-
false,
|
| 65 |
true,
|
| 66 |
false,
|
|
|
|
|
|
|
|
|
|
| 67 |
false,
|
| 68 |
-
|
| 69 |
-
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
false,
|
| 74 |
false
|
| 75 |
],
|
|
@@ -98,22 +98,22 @@
|
|
| 98 |
false
|
| 99 |
],
|
| 100 |
"first_divergence": [
|
| 101 |
-
2,
|
| 102 |
-
3,
|
| 103 |
-
1,
|
| 104 |
-
7,
|
| 105 |
-
16,
|
| 106 |
-
6,
|
| 107 |
null,
|
| 108 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
8,
|
| 110 |
-
|
| 111 |
-
|
| 112 |
-
|
| 113 |
-
|
| 114 |
-
|
| 115 |
-
|
| 116 |
-
|
| 117 |
],
|
| 118 |
"first_divergence_noise_floor": [
|
| 119 |
null,
|
|
|
|
| 56 |
0.9882352948188782
|
| 57 |
],
|
| 58 |
"greedy_identical": [
|
| 59 |
+
true,
|
| 60 |
+
true,
|
| 61 |
+
true,
|
|
|
|
|
|
|
|
|
|
| 62 |
true,
|
| 63 |
false,
|
| 64 |
+
true,
|
| 65 |
+
true,
|
| 66 |
+
true,
|
| 67 |
false,
|
| 68 |
+
true,
|
| 69 |
+
true,
|
| 70 |
+
true,
|
| 71 |
+
true,
|
| 72 |
+
true,
|
| 73 |
false,
|
| 74 |
false
|
| 75 |
],
|
|
|
|
| 98 |
false
|
| 99 |
],
|
| 100 |
"first_divergence": [
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 101 |
null,
|
| 102 |
+
null,
|
| 103 |
+
null,
|
| 104 |
+
null,
|
| 105 |
+
26,
|
| 106 |
+
null,
|
| 107 |
+
null,
|
| 108 |
+
null,
|
| 109 |
8,
|
| 110 |
+
null,
|
| 111 |
+
null,
|
| 112 |
+
null,
|
| 113 |
+
null,
|
| 114 |
+
null,
|
| 115 |
+
9,
|
| 116 |
+
19
|
| 117 |
],
|
| 118 |
"first_divergence_noise_floor": [
|
| 119 |
null,
|