Instructions to use anujsahani01/finetuned_codegen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use anujsahani01/finetuned_codegen with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="anujsahani01/finetuned_codegen")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("anujsahani01/finetuned_codegen") model = AutoModelForCausalLM.from_pretrained("anujsahani01/finetuned_codegen") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use anujsahani01/finetuned_codegen with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "anujsahani01/finetuned_codegen" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "anujsahani01/finetuned_codegen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/anujsahani01/finetuned_codegen
- SGLang
How to use anujsahani01/finetuned_codegen 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 "anujsahani01/finetuned_codegen" \ --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": "anujsahani01/finetuned_codegen", "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 "anujsahani01/finetuned_codegen" \ --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": "anujsahani01/finetuned_codegen", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use anujsahani01/finetuned_codegen with Docker Model Runner:
docker model run hf.co/anujsahani01/finetuned_codegen
Commit ·
b997daa
1
Parent(s): 9c83a36
Training in progress, epoch 0
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1503420337
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:46df7d4ab4d7cc2ceb544242cc3031b3e95d43e6bfcb7c1219421db2f1855381
|
| 3 |
size 1503420337
|
runs/Jul02_14-13-30_6f37fd3e98c1/events.out.tfevents.1688307591.6f37fd3e98c1.5221.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:be0a8144f3710667309bb1ca2412b8a21adc07692b4ddfd1999a5e822ffbead5
|
| 3 |
+
size 6425
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4091
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:422fbba16fd0d13be1cc8b784e4d51406cb0b24cf84c0b6a754951eface8e327
|
| 3 |
size 4091
|