Instructions to use CLMBR/passive-transformer-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use CLMBR/passive-transformer-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="CLMBR/passive-transformer-2")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("CLMBR/passive-transformer-2") model = AutoModelForCausalLM.from_pretrained("CLMBR/passive-transformer-2", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use CLMBR/passive-transformer-2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "CLMBR/passive-transformer-2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "CLMBR/passive-transformer-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/CLMBR/passive-transformer-2
- SGLang
How to use CLMBR/passive-transformer-2 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 "CLMBR/passive-transformer-2" \ --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": "CLMBR/passive-transformer-2", "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 "CLMBR/passive-transformer-2" \ --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": "CLMBR/passive-transformer-2", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use CLMBR/passive-transformer-2 with Docker Model Runner:
docker model run hf.co/CLMBR/passive-transformer-2
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.626cb33
-
Model save
Verified signature9dcf8c8 -
Training in progress, epoch 0, checkpoint
Verified signature6949b30 -
Training in progress, epoch 0
Verified signature7ee918c -
Training in progress, epoch 1, checkpoint
Verified signature85cfb77 -
Training in progress, epoch 1
Verified signature5f3cfb6 -
Training in progress, epoch 0, checkpoint
Verified signature0bcd66c -
Training in progress, epoch 0
Verified signature6ed15cb -
Training in progress, epoch 1, checkpoint
Verified signatured24ed03 -
Training in progress, epoch 1
Verified signature3f148ba -
Training in progress, epoch 0, checkpoint
Verified signature75a6de7 -
Training in progress, epoch 0
Verified signature8006085
-
Training in progress, epoch 1, checkpoint
Verified signature8b86608 -
Training in progress, epoch 1
Verified signatureb7627ff -
Training in progress, epoch 0, checkpoint
Verified signature303a070 -
Training in progress, epoch 0
Verified signaturea7a743a -
Training in progress, epoch 0, checkpoint
Verified signature3b22c80 -
Training in progress, epoch 0
Verified signaturec15bc31
-
Training in progress, epoch 1, checkpoint
Verified signature2e000a2 -
Training in progress, epoch 1
Verified signature7e603e7 -
Training in progress, epoch 0, checkpoint
Verified signature536a043 -
Training in progress, epoch 0
Verified signaturec702602 -
Training in progress, epoch 1, checkpoint
Verified signaturec70b3e5 -
Training in progress, epoch 1
Verified signaturef389745 -
Training in progress, epoch 0, checkpoint
Verified signature35a1de4 -
Training in progress, epoch 0
Verified signature186ede9 -
Training in progress, epoch 1, checkpoint
Verified signature3cf9f6f -
Training in progress, epoch 1
Verified signatureb3ec52d -
Training in progress, epoch 0, checkpoint
Verified signatureec173df -
Training in progress, epoch 0
Verified signaturece66565 -
Training in progress, epoch 1, checkpoint
Verified signature33e0911 -
Training in progress, epoch 1
Verified signature0524978 -
Training in progress, epoch 0, checkpoint
Verified signaturec427ad1 -
Training in progress, epoch 0
Verified signaturecb1f1e2 -
Training in progress, epoch 1, checkpoint
Verified signature571dc0a -
Training in progress, epoch 1
Verified signaturec231069 -
Training in progress, epoch 0, checkpoint
Verified signature6f5b5ad -
Training in progress, epoch 0
Verified signature20575ea
-
Training in progress, epoch 1, checkpoint
Verified signature923c431 -
Training in progress, epoch 1
Verified signaturee7ab91c -
Training in progress, epoch 0, checkpoint
Verified signatured7d7048 -
Training in progress, epoch 0
Verified signature7a9fcb9 -
Training in progress, epoch 1
Verified signaturefd7b331 -
Training in progress, epoch 0, checkpoint
Verified signaturef9f53a3 -
Training in progress, epoch 0
Verified signaturedd73a46 -
Training in progress, epoch 1, checkpoint
Verified signature2827384 -
Training in progress, epoch 1
Verified signature745fbf4 -
Training in progress, epoch 0, checkpoint
Verified signature25eda6d -
Training in progress, epoch 0
Verified signatured2be1f4 -
Training in progress, epoch 1, checkpoint
Verified signature6ed0b22