Text Generation
Transformers
Safetensors
starcoder2
code
Eval Results (legacy)
text-generation-inference
4-bit precision
awq
Instructions to use TechxGenus/starcoder2-3b-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use TechxGenus/starcoder2-3b-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="TechxGenus/starcoder2-3b-AWQ")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("TechxGenus/starcoder2-3b-AWQ") model = AutoModelForCausalLM.from_pretrained("TechxGenus/starcoder2-3b-AWQ") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use TechxGenus/starcoder2-3b-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "TechxGenus/starcoder2-3b-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "TechxGenus/starcoder2-3b-AWQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/TechxGenus/starcoder2-3b-AWQ
- SGLang
How to use TechxGenus/starcoder2-3b-AWQ 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 "TechxGenus/starcoder2-3b-AWQ" \ --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": "TechxGenus/starcoder2-3b-AWQ", "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 "TechxGenus/starcoder2-3b-AWQ" \ --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": "TechxGenus/starcoder2-3b-AWQ", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use TechxGenus/starcoder2-3b-AWQ with Docker Model Runner:
docker model run hf.co/TechxGenus/starcoder2-3b-AWQ
Update README.md
#1
by cherry0328 - opened
README.md
CHANGED
|
@@ -29,7 +29,7 @@ model-index:
|
|
| 29 |
type: ds-1000
|
| 30 |
metrics:
|
| 31 |
- type: pass@1
|
| 32 |
-
value: 25
|
| 33 |
- task:
|
| 34 |
type: text-generation
|
| 35 |
dataset:
|
|
@@ -62,6 +62,8 @@ model-index:
|
|
| 62 |
metrics:
|
| 63 |
- type: edit-smiliarity
|
| 64 |
value: 71.19
|
|
|
|
|
|
|
| 65 |
---
|
| 66 |
|
| 67 |
AWQ quantized version of starcoder2-3b model.
|
|
|
|
| 29 |
type: ds-1000
|
| 30 |
metrics:
|
| 31 |
- type: pass@1
|
| 32 |
+
value: 25
|
| 33 |
- task:
|
| 34 |
type: text-generation
|
| 35 |
dataset:
|
|
|
|
| 62 |
metrics:
|
| 63 |
- type: edit-smiliarity
|
| 64 |
value: 71.19
|
| 65 |
+
base_model:
|
| 66 |
+
- bigcode/starcoder2-3b
|
| 67 |
---
|
| 68 |
|
| 69 |
AWQ quantized version of starcoder2-3b model.
|