Instructions to use Minata/codegen-350M-finetuned_method2test_ctx5v1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Minata/codegen-350M-finetuned_method2test_ctx5v1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Minata/codegen-350M-finetuned_method2test_ctx5v1")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Minata/codegen-350M-finetuned_method2test_ctx5v1") model = AutoModelForCausalLM.from_pretrained("Minata/codegen-350M-finetuned_method2test_ctx5v1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Minata/codegen-350M-finetuned_method2test_ctx5v1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Minata/codegen-350M-finetuned_method2test_ctx5v1" # 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-350M-finetuned_method2test_ctx5v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Minata/codegen-350M-finetuned_method2test_ctx5v1
- SGLang
How to use Minata/codegen-350M-finetuned_method2test_ctx5v1 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-350M-finetuned_method2test_ctx5v1" \ --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-350M-finetuned_method2test_ctx5v1", "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-350M-finetuned_method2test_ctx5v1" \ --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-350M-finetuned_method2test_ctx5v1", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Minata/codegen-350M-finetuned_method2test_ctx5v1 with Docker Model Runner:
docker model run hf.co/Minata/codegen-350M-finetuned_method2test_ctx5v1
Commit History
-
Adding `safetensors` variant of this model
Verified signatureThis is an automated PR created with https://huggingface.co/spaces/safetensors/convert This new file is equivalent to `pytorch_model.bin` but safe in the sense that no arbitrary code can be put into it. These files also happen to load much faster than their pytorch counterpart: https://colab.research.google.com/github/huggingface/notebooks/blob/main/safetensors_doc/en/speed.ipynb The widgets on your model page will run using this model even if this is not merged making sure the file actually works. If you find any issues: please report here: https://huggingface.co/spaces/safetensors/convert/discussions Feel free to ignore this PR.6e8215a
-
Training in progress, step 72500
b7d4f67 -
Training in progress, step 70000
d085221 -
Training in progress, step 67500
559022a -
Training in progress, step 65000
1127086 -
Training in progress, step 63000
70063ed -
Training in progress, step 60500
723cdf7 -
Training in progress, step 58500
2e46e4b -
Training in progress, step 56000
be73b66 -
Training in progress, step 53500
be7c4f8 -
Training in progress, step 51500
b641dd7 -
Training in progress, step 49000
3ecb1d6 -
Training in progress, step 46000
a3d2d46 -
Training in progress, step 43500
ddb06cb -
Training in progress, step 41500
dd267c7 -
Training in progress, step 39500
e162d66
-
Training in progress, step 37000
052b58e -
Training in progress, step 34500
857e1c4 -
Training in progress, step 32000
7557dee -
Training in progress, step 30000
b7aa76d -
Training in progress, step 27500
037e3e8 -
Training in progress, step 25500
a7d3ed0 -
Training in progress, step 23000
003ff8f -
Training in progress, step 21000
9e09309 -
Training in progress, step 18500
f27d504 -
Training in progress, step 16000
c13e125 -
Training in progress, step 14000
c2890d8 -
Training in progress, step 11500
2326d43 -
Training in progress, step 9000
7919e55 -
Training in progress, step 7000
81742b4 -
Training in progress, step 4500
5f75ba2 -
Training in progress, step 2500
a8d9c10 -
Training in progress, step 500
90a322f -
initial commit
ebeef64