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 +82 -0
results/parity.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"kl_merged_mean": 0.0005866279648216732,
|
| 3 |
+
"kl_noise_floor_mean": 0.0005663487763740704,
|
| 4 |
+
"kl_merged": [
|
| 5 |
+
0.0008703491766937077,
|
| 6 |
+
9.222029621014372e-05,
|
| 7 |
+
0.0007167468429543078,
|
| 8 |
+
0.0008164332830347121,
|
| 9 |
+
0.0007052462315186858,
|
| 10 |
+
0.0006917773862369359,
|
| 11 |
+
0.00034174113534390926,
|
| 12 |
+
0.0003271968453191221,
|
| 13 |
+
0.0010236881207674742,
|
| 14 |
+
0.0006752847693860531,
|
| 15 |
+
0.0007079406641423702,
|
| 16 |
+
0.00017639460565987974,
|
| 17 |
+
0.0007488174014724791,
|
| 18 |
+
0.0006852578371763229,
|
| 19 |
+
0.00014917536464054137,
|
| 20 |
+
0.0006577774765901268
|
| 21 |
+
],
|
| 22 |
+
"kl_noise_floor": [
|
| 23 |
+
0.0007617463124915957,
|
| 24 |
+
6.39890567981638e-05,
|
| 25 |
+
0.0007706052856519818,
|
| 26 |
+
0.0007707001059316099,
|
| 27 |
+
0.0007783010951243341,
|
| 28 |
+
0.0007022418431006372,
|
| 29 |
+
0.00016734802920836955,
|
| 30 |
+
0.000272314966423437,
|
| 31 |
+
0.0009283985127694905,
|
| 32 |
+
0.0008080666302703321,
|
| 33 |
+
0.0008215219713747501,
|
| 34 |
+
0.0001620379334781319,
|
| 35 |
+
0.0006805534940212965,
|
| 36 |
+
0.0006438549607992172,
|
| 37 |
+
0.0001140245221904479,
|
| 38 |
+
0.0006158757023513317
|
| 39 |
+
],
|
| 40 |
+
"top1_agree": [
|
| 41 |
+
0.9746835231781006,
|
| 42 |
+
1.0,
|
| 43 |
+
0.9753086566925049,
|
| 44 |
+
0.9863013625144958,
|
| 45 |
+
0.9759036302566528,
|
| 46 |
+
0.9736841917037964,
|
| 47 |
+
0.978723406791687,
|
| 48 |
+
1.0,
|
| 49 |
+
0.9545454382896423,
|
| 50 |
+
0.988095223903656,
|
| 51 |
+
0.9866666793823242,
|
| 52 |
+
1.0,
|
| 53 |
+
0.9876543283462524,
|
| 54 |
+
0.9879518151283264,
|
| 55 |
+
1.0,
|
| 56 |
+
0.9882352948188782
|
| 57 |
+
],
|
| 58 |
+
"greedy_identical": [
|
| 59 |
+
false,
|
| 60 |
+
false,
|
| 61 |
+
false,
|
| 62 |
+
false,
|
| 63 |
+
false,
|
| 64 |
+
false,
|
| 65 |
+
true,
|
| 66 |
+
false,
|
| 67 |
+
false,
|
| 68 |
+
false,
|
| 69 |
+
false,
|
| 70 |
+
false,
|
| 71 |
+
false,
|
| 72 |
+
false,
|
| 73 |
+
false,
|
| 74 |
+
false
|
| 75 |
+
],
|
| 76 |
+
"tokenizer_identical": [
|
| 77 |
+
true,
|
| 78 |
+
true,
|
| 79 |
+
true,
|
| 80 |
+
true
|
| 81 |
+
]
|
| 82 |
+
}
|