Instructions to use Minata/codegen-finetuned_method2test_ctx5 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Minata/codegen-finetuned_method2test_ctx5 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Minata/codegen-finetuned_method2test_ctx5")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Minata/codegen-finetuned_method2test_ctx5") model = AutoModelForCausalLM.from_pretrained("Minata/codegen-finetuned_method2test_ctx5") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use Minata/codegen-finetuned_method2test_ctx5 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Minata/codegen-finetuned_method2test_ctx5" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Minata/codegen-finetuned_method2test_ctx5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Minata/codegen-finetuned_method2test_ctx5
- SGLang
How to use Minata/codegen-finetuned_method2test_ctx5 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 "Minata/codegen-finetuned_method2test_ctx5" \ --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": "Minata/codegen-finetuned_method2test_ctx5", "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 "Minata/codegen-finetuned_method2test_ctx5" \ --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": "Minata/codegen-finetuned_method2test_ctx5", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Minata/codegen-finetuned_method2test_ctx5 with Docker Model Runner:
docker model run hf.co/Minata/codegen-finetuned_method2test_ctx5
Training in progress, step 500
Browse files
pytorch_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 1510796785
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:65640850cbcce8938e1f6911e38ba0c76c252bf3414ce96536022190d6a95140
|
| 3 |
size 1510796785
|
runs/Feb07_01-27-00_36df5cd51cd3/1675733652.9622686/events.out.tfevents.1675733652.36df5cd51cd3.545.1
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aabaf30e079bf9eeb9b296bfad5501b40348bb028c46e871527730d3242da4ef
|
| 3 |
+
size 5715
|
runs/Feb07_01-27-00_36df5cd51cd3/events.out.tfevents.1675733652.36df5cd51cd3.545.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8544f903499d6ef763214b3bf0ab85ad2a19bc9e935b4b46e98469528dc24ad1
|
| 3 |
+
size 4224
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3515
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53c327fb0315d7c811bd5a56d09d3d26729832cf69f447270377b6ed6ab7828d
|
| 3 |
size 3515
|