Text Generation
Transformers
strata
persistent-memory
structured-memory
neuro-symbolic
exact-value-copying
Instructions to use nur-dev/strata-native-lm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use nur-dev/strata-native-lm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="nur-dev/strata-native-lm")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("nur-dev/strata-native-lm", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use nur-dev/strata-native-lm with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "nur-dev/strata-native-lm" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "nur-dev/strata-native-lm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/nur-dev/strata-native-lm
- SGLang
How to use nur-dev/strata-native-lm 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 "nur-dev/strata-native-lm" \ --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": "nur-dev/strata-native-lm", "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 "nur-dev/strata-native-lm" \ --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": "nur-dev/strata-native-lm", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use nur-dev/strata-native-lm with Docker Model Runner:
docker model run hf.co/nur-dev/strata-native-lm
Download comparison/results.json from nur-dev/strata-native-lm: direct link, hf CLI and curl.
- Browser
- Download file 8.86 kB
-
https://huggingface.co/nur-dev/strata-native-lm/resolve/main/comparison/results.json
- Command line
-
hf download hf://nur-dev/strata-native-lm/comparison/results.json
-
curl -L -o results.json https://huggingface.co/nur-dev/strata-native-lm/resolve/main/comparison/results.json
8.86 kB
| { | |
| "experiment": "STRATA-PROMPT-SERIALIZATION-COMPARISON-1", | |
| "unique_records": 4096, | |
| "repeats": 2, | |
| "registration_sha256": "f94beb6d736a3178f651ddc196b6a90d2cefffe2b9979b19129777afa2c1c782", | |
| "arms": { | |
| "PROMPT_SERIALIZATION": { | |
| "correct": 8102, | |
| "total": 8192, | |
| "reference_exact": 0, | |
| "input_tokens": 1116502, | |
| "truncated": 16, | |
| "accuracy": 0.989013671875, | |
| "mean_input_tokens": 136.291748046875, | |
| "seconds": 962.6804165355861, | |
| "amortized_ms_per_record": 117.51469928412916, | |
| "median_batch_amortized_ms": 62.35561228822917, | |
| "p95_batch_amortized_ms": 417.074111988768, | |
| "repeated_response_identity": 1.0 | |
| }, | |
| "STRATA_NATIVE_V1": { | |
| "correct": 8192, | |
| "total": 8192, | |
| "reference_exact": 8110, | |
| "input_tokens": 528536, | |
| "truncated": 0, | |
| "accuracy": 1.0, | |
| "mean_input_tokens": 64.5185546875, | |
| "seconds": 309.70214548148215, | |
| "amortized_ms_per_record": 37.80543768084499, | |
| "median_batch_amortized_ms": 37.54055639728904, | |
| "p95_batch_amortized_ms": 42.57394268643111, | |
| "repeated_response_identity": 1.0 | |
| } | |
| }, | |
| "slices": [ | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "graph_depth", | |
| "value": "1", | |
| "correct": 6566, | |
| "total": 6656, | |
| "accuracy": 0.9864783653846154 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "graph_depth", | |
| "value": "2", | |
| "correct": 512, | |
| "total": 512, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "graph_depth", | |
| "value": "3", | |
| "correct": 512, | |
| "total": 512, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "graph_depth", | |
| "value": "4", | |
| "correct": 512, | |
| "total": 512, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "kind", | |
| "value": "binding", | |
| "correct": 5120, | |
| "total": 5120, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "kind", | |
| "value": "heldout", | |
| "correct": 1446, | |
| "total": 1536, | |
| "accuracy": 0.94140625 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "kind", | |
| "value": "join", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "approval", | |
| "correct": 492, | |
| "total": 494, | |
| "accuracy": 0.9959514170040485 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "calendar", | |
| "correct": 1024, | |
| "total": 1024, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "crm", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "deployment", | |
| "correct": 516, | |
| "total": 524, | |
| "accuracy": 0.9847328244274809 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "incident", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "inventory", | |
| "correct": 1024, | |
| "total": 1024, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "project", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema", | |
| "value": "shipment", | |
| "correct": 438, | |
| "total": 518, | |
| "accuracy": 0.8455598455598455 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema_partition", | |
| "value": "heldout", | |
| "correct": 1446, | |
| "total": 1536, | |
| "accuracy": 0.94140625 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "schema_partition", | |
| "value": "registered", | |
| "correct": 6656, | |
| "total": 6656, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "value_type", | |
| "value": "datetime", | |
| "correct": 654, | |
| "total": 654, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "value_type", | |
| "value": "entity", | |
| "correct": 3434, | |
| "total": 3436, | |
| "accuracy": 0.9994179278230501 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "value_type", | |
| "value": "enum", | |
| "correct": 2008, | |
| "total": 2008, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "value_type", | |
| "value": "integer", | |
| "correct": 612, | |
| "total": 692, | |
| "accuracy": 0.884393063583815 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "value_type", | |
| "value": "location", | |
| "correct": 956, | |
| "total": 964, | |
| "accuracy": 0.991701244813278 | |
| }, | |
| { | |
| "arm": "PROMPT_SERIALIZATION", | |
| "axis": "value_type", | |
| "value": "string", | |
| "correct": 438, | |
| "total": 438, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "graph_depth", | |
| "value": "1", | |
| "correct": 6656, | |
| "total": 6656, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "graph_depth", | |
| "value": "2", | |
| "correct": 512, | |
| "total": 512, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "graph_depth", | |
| "value": "3", | |
| "correct": 512, | |
| "total": 512, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "graph_depth", | |
| "value": "4", | |
| "correct": 512, | |
| "total": 512, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "kind", | |
| "value": "binding", | |
| "correct": 5120, | |
| "total": 5120, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "kind", | |
| "value": "heldout", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "kind", | |
| "value": "join", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "approval", | |
| "correct": 494, | |
| "total": 494, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "calendar", | |
| "correct": 1024, | |
| "total": 1024, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "crm", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "deployment", | |
| "correct": 524, | |
| "total": 524, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "incident", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "inventory", | |
| "correct": 1024, | |
| "total": 1024, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "project", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema", | |
| "value": "shipment", | |
| "correct": 518, | |
| "total": 518, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema_partition", | |
| "value": "heldout", | |
| "correct": 1536, | |
| "total": 1536, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "schema_partition", | |
| "value": "registered", | |
| "correct": 6656, | |
| "total": 6656, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "value_type", | |
| "value": "datetime", | |
| "correct": 654, | |
| "total": 654, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "value_type", | |
| "value": "entity", | |
| "correct": 3436, | |
| "total": 3436, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "value_type", | |
| "value": "enum", | |
| "correct": 2008, | |
| "total": 2008, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "value_type", | |
| "value": "integer", | |
| "correct": 692, | |
| "total": 692, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "value_type", | |
| "value": "location", | |
| "correct": 964, | |
| "total": 964, | |
| "accuracy": 1.0 | |
| }, | |
| { | |
| "arm": "STRATA_NATIVE_V1", | |
| "axis": "value_type", | |
| "value": "string", | |
| "correct": 438, | |
| "total": 438, | |
| "accuracy": 1.0 | |
| } | |
| ] | |
| } |