Instructions to use iproskurina/opt-2.7b-GPTQ-4bit-g128 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use iproskurina/opt-2.7b-GPTQ-4bit-g128 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="iproskurina/opt-2.7b-GPTQ-4bit-g128")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("iproskurina/opt-2.7b-GPTQ-4bit-g128") model = AutoModelForCausalLM.from_pretrained("iproskurina/opt-2.7b-GPTQ-4bit-g128", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use iproskurina/opt-2.7b-GPTQ-4bit-g128 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "iproskurina/opt-2.7b-GPTQ-4bit-g128" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "iproskurina/opt-2.7b-GPTQ-4bit-g128", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/iproskurina/opt-2.7b-GPTQ-4bit-g128
- SGLang
How to use iproskurina/opt-2.7b-GPTQ-4bit-g128 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 "iproskurina/opt-2.7b-GPTQ-4bit-g128" \ --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": "iproskurina/opt-2.7b-GPTQ-4bit-g128", "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 "iproskurina/opt-2.7b-GPTQ-4bit-g128" \ --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": "iproskurina/opt-2.7b-GPTQ-4bit-g128", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use iproskurina/opt-2.7b-GPTQ-4bit-g128 with Docker Model Runner:
docker model run hf.co/iproskurina/opt-2.7b-GPTQ-4bit-g128
AutoGPTQ model for facebook/opt-2.7b: 4bits, gr128, desc_act=False
Browse files- README.md +9 -9
- tokenizer.json +1 -0
README.md
CHANGED
|
@@ -1,18 +1,18 @@
|
|
| 1 |
---
|
| 2 |
base_model: facebook/opt-2.7b
|
| 3 |
-
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
| 5 |
model_name: opt-2.7b
|
| 6 |
-
model_type: opt
|
| 7 |
pipeline_tag: text-generation
|
| 8 |
-
quantized_by: iproskurina
|
| 9 |
tags:
|
| 10 |
- pretrained
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
- c4
|
| 16 |
---
|
| 17 |
|
| 18 |
|
|
|
|
| 1 |
---
|
| 2 |
base_model: facebook/opt-2.7b
|
| 3 |
+
datasets:
|
| 4 |
+
- c4
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
license: other
|
| 8 |
model_name: opt-2.7b
|
|
|
|
| 9 |
pipeline_tag: text-generation
|
|
|
|
| 10 |
tags:
|
| 11 |
- pretrained
|
| 12 |
+
inference: false
|
| 13 |
+
model_creator: facebook
|
| 14 |
+
model_type: opt
|
| 15 |
+
quantized_by: iproskurina
|
|
|
|
| 16 |
---
|
| 17 |
|
| 18 |
|
tokenizer.json
CHANGED
|
@@ -91,6 +91,7 @@
|
|
| 91 |
"end_of_word_suffix": "",
|
| 92 |
"fuse_unk": false,
|
| 93 |
"byte_fallback": false,
|
|
|
|
| 94 |
"vocab": {
|
| 95 |
"<s>": 0,
|
| 96 |
"<pad>": 1,
|
|
|
|
| 91 |
"end_of_word_suffix": "",
|
| 92 |
"fuse_unk": false,
|
| 93 |
"byte_fallback": false,
|
| 94 |
+
"ignore_merges": false,
|
| 95 |
"vocab": {
|
| 96 |
"<s>": 0,
|
| 97 |
"<pad>": 1,
|