Text Generation
Transformers
Safetensors
llama
text-generation-inference
8-bit precision
bitsandbytes
Instructions to use RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits") model = AutoModelForCausalLM.from_pretrained("RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits
- SGLang
How to use RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits 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 "RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits" \ --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": "RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits", "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 "RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits" \ --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": "RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits with Docker Model Runner:
docker model run hf.co/RichardErkhov/CardinalOperations_-_ORLM-LLaMA-3-8B-8bits
Add missing metadata and links to ORLM-LLaMA-3-8B model card (#1)
Browse files- Add missing metadata and links to ORLM-LLaMA-3-8B model card (98dd8f0a63a9008f2a814ef628e88682f386c5f4)
Co-authored-by: Niels Rogge <nielsr@users.noreply.huggingface.co>
README.md
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
Quantization made by Richard Erkhov.
|
| 2 |
|
| 3 |
[Github](https://github.com/RichardErkhov)
|
|
@@ -18,14 +24,14 @@ Original model description:
|
|
| 18 |
---
|
| 19 |
license: llama3
|
| 20 |
---
|
| 21 |
-
|
| 22 |
|
| 23 |
-
|
| 24 |
|
| 25 |
## Model Details
|
| 26 |
|
| 27 |
LLaMA-3-8B-ORLM is fully fine-tuned on the OR-Instruct data and built with Meta [LLaMA-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) model.
|
| 28 |
-
More training details can be seen at https://arxiv.org/abs/2405.17743
|
| 29 |
|
| 30 |
## Model Usage
|
| 31 |
|
|
@@ -168,5 +174,4 @@ Below is the comparison of performance on the NL4OPT, MAMO, and IndustryOR bench
|
|
| 168 |
```
|
| 169 |
|
| 170 |
## License
|
| 171 |
-
The use of this model is governed by the [META LLAMA 3 COMMUNITY LICENSE AGREEMENT](https://llama.meta.com/llama3/license/).
|
| 172 |
-
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: llama3
|
| 3 |
+
pipeline_tag: text-generation
|
| 4 |
+
library_name: transformers
|
| 5 |
+
---
|
| 6 |
+
|
| 7 |
Quantization made by Richard Erkhov.
|
| 8 |
|
| 9 |
[Github](https://github.com/RichardErkhov)
|
|
|
|
| 24 |
---
|
| 25 |
license: llama3
|
| 26 |
---
|
| 27 |
+
This model is described in [ORLM: A Customizable Framework in Training Large Models for Automated Optimization Modeling](https://huggingface.co/papers/2405.17743).
|
| 28 |
|
| 29 |
+
Code: https://github.com/Cardinal-Operations/ORLM
|
| 30 |
|
| 31 |
## Model Details
|
| 32 |
|
| 33 |
LLaMA-3-8B-ORLM is fully fine-tuned on the OR-Instruct data and built with Meta [LLaMA-3-8B](https://huggingface.co/meta-llama/Meta-Llama-3-8B) model.
|
| 34 |
+
More training details can be seen at [the paper](https://arxiv.org/abs/2405.17743).
|
| 35 |
|
| 36 |
## Model Usage
|
| 37 |
|
|
|
|
| 174 |
```
|
| 175 |
|
| 176 |
## License
|
| 177 |
+
The use of this model is governed by the [META LLAMA 3 COMMUNITY LICENSE AGREEMENT](https://llama.meta.com/llama3/license/).
|
|
|