Instructions to use AKLS/pfamodel with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use AKLS/pfamodel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="AKLS/pfamodel")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("AKLS/pfamodel") model = AutoModelForCausalLM.from_pretrained("AKLS/pfamodel", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use AKLS/pfamodel with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "AKLS/pfamodel" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "AKLS/pfamodel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/AKLS/pfamodel
- SGLang
How to use AKLS/pfamodel 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 "AKLS/pfamodel" \ --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": "AKLS/pfamodel", "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 "AKLS/pfamodel" \ --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": "AKLS/pfamodel", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use AKLS/pfamodel with Docker Model Runner:
docker model run hf.co/AKLS/pfamodel
Commit History
-
Training in progress, step 155
Verified signature8145cea -
Training in progress, step 145
Verified signature9f54f44 -
Training in progress, step 135
Verified signature24b4855 -
Training in progress, step 125
Verified signature9ff7c9b -
Training in progress, step 115
Verified signaturefe8cd53 -
Training in progress, step 105
Verified signature5749215 -
Training in progress, step 95
Verified signature3ca485a -
Training in progress, step 85
Verified signature52e4a58 -
Training in progress, step 75
Verified signature1bd06e4 -
Training in progress, step 65
Verified signature016ed4e -
Training in progress, step 55
Verified signaturea6f4207 -
Training in progress, step 45
Verified signature5180a71 -
Training in progress, step 35
Verified signatured4f7c9d -
Training in progress, step 25
Verified signature66d8057 -
Training in progress, step 15
Verified signature6128ee7 -
Training in progress, step 5
Verified signature55cc74f -
Training in progress, step 75
Verified signaturec341b37 -
Training in progress, step 65
Verified signaturef8ebc30 -
Training in progress, step 55
Verified signaturecf3b422 -
Training in progress, step 45
Verified signatureb136d7a -
Training in progress, step 35
Verified signature87acc24 -
Training in progress, step 25
Verified signature5fdfc3d -
Training in progress, step 15
Verified signature782ddfd -
Training in progress, step 5
Verified signature52739f5 -
Training in progress, step 5
Verified signaturea2219b5 -
Training in progress, step 35
Verified signature9aef353 -
Training in progress, step 20
Verified signaturee0ff9eb -
Training in progress, step 5
Verified signature489eb80 -
Training in progress, step 140
Verified signature887114e -
Training in progress, step 120
Verified signaturec657a1d -
Training in progress, step 100
Verified signature23d8a90 -
Training in progress, step 80
Verified signature2f1208b -
Training in progress, step 60
Verified signatureb77099c -
Training in progress, step 40
Verified signature6dbd171 -
Training in progress, step 10
Verified signature3b06482 -
Training in progress, step 310
Verified signature197b9ef -
Training in progress, step 270
Verified signature81545b5 -
Training in progress, step 220
Verified signature6cb6773 -
Training in progress, step 180
Verified signature2c1bc8f -
Training in progress, step 140
Verified signature323dad9 -
Training in progress, step 100
Verified signature97b50f7 -
Training in progress, step 50
Verified signature97bf3ea -
Training in progress, step 10
Verified signaturef4b1fab -
Training in progress, step 10
Verified signature6707a0b -
initial commit
Verified signature1930f60