Text Generation
Transformers
Safetensors
olmo_hybrid
risc-v
compiled-weights
olmo-hybrid
gated-deltanet
tool-use
Instructions to use jgalego/olmputer-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jgalego/olmputer-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="jgalego/olmputer-tiny")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("jgalego/olmputer-tiny") model = AutoModelForCausalLM.from_pretrained("jgalego/olmputer-tiny", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use jgalego/olmputer-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "jgalego/olmputer-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "jgalego/olmputer-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/jgalego/olmputer-tiny
- SGLang
How to use jgalego/olmputer-tiny 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-tiny" \ --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": "jgalego/olmputer-tiny", "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 "jgalego/olmputer-tiny" \ --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": "jgalego/olmputer-tiny", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use jgalego/olmputer-tiny with Docker Model Runner:
docker model run hf.co/jgalego/olmputer-tiny
Download config.json from jgalego/olmputer-tiny: direct link, hf CLI and curl.
- Browser
- Download file 1.34 kB
-
https://huggingface.co/jgalego/olmputer-tiny/resolve/main/config.json
- Command line
-
hf download hf://jgalego/olmputer-tiny/config.json
-
curl -L -o config.json https://huggingface.co/jgalego/olmputer-tiny/resolve/main/config.json
1.34 kB
| { | |
| "architectures": [ | |
| "OlmoHybridForCausalLM" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "bos_token_id": 230324, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 230321, | |
| "head_dim": 64, | |
| "hidden_act": "silu", | |
| "hidden_size": 2816, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 11008, | |
| "layer_types": [ | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "linear_attention", | |
| "full_attention" | |
| ], | |
| "linear_a_log_max": 16.0, | |
| "linear_a_log_min": 0.0, | |
| "linear_allow_neg_eigval": true, | |
| "linear_conv_kernel_dim": 4, | |
| "linear_dt_init_floor": 0.0001, | |
| "linear_dt_max": 0.1, | |
| "linear_dt_min": 0.001, | |
| "linear_key_head_dim": 96, | |
| "linear_num_key_heads": 30, | |
| "linear_num_value_heads": 30, | |
| "linear_value_head_dim": 192, | |
| "max_position_embeddings": 32768, | |
| "model_type": "olmo_hybrid", | |
| "num_attention_heads": 1, | |
| "num_hidden_layers": 12, | |
| "num_key_value_heads": 1, | |
| "pad_token_id": 230324, | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "rope_theta": null, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.19.0", | |
| "use_cache": true, | |
| "vocab_size": 230336 | |
| } | |