Instructions to use Pamzyy/testcode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pamzyy/testcode with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Pamzyy/testcode")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Pamzyy/testcode") model = AutoModelForCausalLM.from_pretrained("Pamzyy/testcode", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Pamzyy/testcode with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Pamzyy/testcode" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pamzyy/testcode", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Pamzyy/testcode
- SGLang
How to use Pamzyy/testcode 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 "Pamzyy/testcode" \ --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": "Pamzyy/testcode", "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 "Pamzyy/testcode" \ --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": "Pamzyy/testcode", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use Pamzyy/testcode with Docker Model Runner:
docker model run hf.co/Pamzyy/testcode
Commit History
-
Checkpoint @ step 15
Verified signature0645424 -
Training in progress, step 15
Verified signature11310f1 -
Checkpoint @ step 10
Verified signature7b951b8 -
Training in progress, step 10
Verified signaturea0ffedd -
Checkpoint @ step 5
Verified signaturea73ed34 -
Training in progress, step 5
Verified signature6e70d7c -
Delete checkpoints
Verified signature29840b7 -
Model save
Verified signature9f077cc -
Checkpoint @ step 35
Verified signature05b2b83 -
Training in progress, step 35
Verified signature369a2fc -
Checkpoint @ step 30
Verified signatureb096f71 -
Training in progress, step 30
Verified signaturef9f9504 -
Checkpoint @ step 25
Verified signature3a52730 -
Training in progress, step 25
Verified signatured179a85 -
Checkpoint @ step 20
Verified signature00c4a8a -
Training in progress, step 20
Verified signatureefc664e -
Checkpoint @ step 15
Verified signature1bd5833 -
Training in progress, step 15
Verified signaturebfca169 -
Checkpoint @ step 10
Verified signature3343751 -
Training in progress, step 10
Verified signature4bd87c0 -
Checkpoint @ step 5
Verified signature60c7508 -
Training in progress, step 5
Verified signaturea3bb93f
-
Delete checkpoints/checkpoint-10
Verified signature933c4d7 -
Delete checkpoints/checkpoint-15
Verified signature25830dc -
Delete checkpoints/checkpoint-20
Verified signature5e40340 -
Delete checkpoints/checkpoint-25
Verified signature7747905 -
Delete checkpoints/checkpoint-5
Verified signature81ae353
-
Delete checkpoints/checkpoint-30
Verified signature2fb25b0
-
Checkpoint @ step 15
Verified signature4aaf12a -
Training in progress, step 15
Verified signaturea6ec1a3 -
Training in progress, step 10
Verified signatureaf74187 -
Checkpoint @ step 5
Verified signaturecd77eda -
Training in progress, step 5
Verified signaturec907cb8
-
Training in progress, step 35
Verified signaturec5ffd31 -
Checkpoint @ step 30
Verified signature5ed2c61 -
Training in progress, step 30
Verified signatureb007c3d -
Checkpoint @ step 25
Verified signaturee2b74c0 -
Training in progress, step 25
Verified signatured583592 -
Checkpoint @ step 20
Verified signaturef83cb61 -
Training in progress, step 20
Verified signature3b11a5c -
Checkpoint @ step 15
Verified signature0ffe883 -
Training in progress, step 15
Verified signature28d5e4c -
Checkpoint @ step 10
Verified signature8766a06 -
Training in progress, step 10
Verified signature3fd8744 -
Checkpoint @ step 5
Verified signatureba19148 -
Training in progress, step 5
Verified signatureb320a51 -
Checkpoint @ step 10
Verified signatureb257706 -
Training in progress, step 10
Verified signaturef013716 -
Checkpoint @ step 5
Verified signature3a3a3c5 -
Training in progress, step 5
Verified signatureeff580b