Text Generation
Transformers
Safetensors
English
olmoe
Mixture of Experts
mixture-of-experts
compressed
hxq
helix-substrate
vector-quantization
helixcode
conversational
Eval Results (legacy)
8-bit precision
Instructions to use EchoLabs33/olmoe-1b-7b-instruct-hxq with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use EchoLabs33/olmoe-1b-7b-instruct-hxq with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="EchoLabs33/olmoe-1b-7b-instruct-hxq") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("EchoLabs33/olmoe-1b-7b-instruct-hxq") model = AutoModelForCausalLM.from_pretrained("EchoLabs33/olmoe-1b-7b-instruct-hxq", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use EchoLabs33/olmoe-1b-7b-instruct-hxq with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "EchoLabs33/olmoe-1b-7b-instruct-hxq" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "EchoLabs33/olmoe-1b-7b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/EchoLabs33/olmoe-1b-7b-instruct-hxq
- SGLang
How to use EchoLabs33/olmoe-1b-7b-instruct-hxq 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 "EchoLabs33/olmoe-1b-7b-instruct-hxq" \ --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": "EchoLabs33/olmoe-1b-7b-instruct-hxq", "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 "EchoLabs33/olmoe-1b-7b-instruct-hxq" \ --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": "EchoLabs33/olmoe-1b-7b-instruct-hxq", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use EchoLabs33/olmoe-1b-7b-instruct-hxq with Docker Model Runner:
docker model run hf.co/EchoLabs33/olmoe-1b-7b-instruct-hxq
| { | |
| "verdict": "PASS", | |
| "summary": { | |
| "dense_tensors": 3219, | |
| "output_tensors": 12675, | |
| "compressed_weights": 3152, | |
| "accounted": 3219, | |
| "missing": 0, | |
| "skip_tensors_found": 35, | |
| "skip_categories": { | |
| "embedding": "OK (1/1)", | |
| "layernorm": "OK (33/33)", | |
| "output_head": "OK (1/1)" | |
| } | |
| }, | |
| "failures": [], | |
| "missing_tensors": [], | |
| "skip_found": { | |
| "output_head": [ | |
| "lm_head.weight" | |
| ], | |
| "embedding": [ | |
| "model.embed_tokens.weight" | |
| ], | |
| "layernorm": [ | |
| "model.layers.0.input_layernorm.weight", | |
| "model.layers.0.post_attention_layernorm.weight", | |
| "model.layers.1.input_layernorm.weight", | |
| "model.layers.1.post_attention_layernorm.weight", | |
| "model.layers.10.input_layernorm.weight", | |
| "model.layers.10.post_attention_layernorm.weight", | |
| "model.layers.11.input_layernorm.weight", | |
| "model.layers.11.post_attention_layernorm.weight", | |
| "model.layers.12.input_layernorm.weight", | |
| "model.layers.12.post_attention_layernorm.weight", | |
| "model.layers.13.input_layernorm.weight", | |
| "model.layers.13.post_attention_layernorm.weight", | |
| "model.layers.14.input_layernorm.weight", | |
| "model.layers.14.post_attention_layernorm.weight", | |
| "model.layers.15.input_layernorm.weight", | |
| "model.layers.15.post_attention_layernorm.weight", | |
| "model.layers.2.input_layernorm.weight", | |
| "model.layers.2.post_attention_layernorm.weight", | |
| "model.layers.3.input_layernorm.weight", | |
| "model.layers.3.post_attention_layernorm.weight", | |
| "model.layers.4.input_layernorm.weight", | |
| "model.layers.4.post_attention_layernorm.weight", | |
| "model.layers.5.input_layernorm.weight", | |
| "model.layers.5.post_attention_layernorm.weight", | |
| "model.layers.6.input_layernorm.weight", | |
| "model.layers.6.post_attention_layernorm.weight", | |
| "model.layers.7.input_layernorm.weight", | |
| "model.layers.7.post_attention_layernorm.weight", | |
| "model.layers.8.input_layernorm.weight", | |
| "model.layers.8.post_attention_layernorm.weight", | |
| "model.layers.9.input_layernorm.weight", | |
| "model.layers.9.post_attention_layernorm.weight", | |
| "model.norm.weight" | |
| ] | |
| } | |
| } |