Instructions to use DebateLabKIT/cript with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DebateLabKIT/cript with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DebateLabKIT/cript")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DebateLabKIT/cript") model = AutoModelForCausalLM.from_pretrained("DebateLabKIT/cript") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use DebateLabKIT/cript with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DebateLabKIT/cript" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "DebateLabKIT/cript", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DebateLabKIT/cript
- SGLang
How to use DebateLabKIT/cript 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 "DebateLabKIT/cript" \ --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": "DebateLabKIT/cript", "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 "DebateLabKIT/cript" \ --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": "DebateLabKIT/cript", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DebateLabKIT/cript with Docker Model Runner:
docker model run hf.co/DebateLabKIT/cript
File size: 1,483 Bytes
bca488f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 | [
{
"loss": 2.096086181640625,
"learning_rate": 4.4444444444444447e-05,
"epoch": 0.2222222222222222,
"total_flos": 1529116360704000,
"step": 500
},
{
"loss": 1.851991455078125,
"learning_rate": 3.888888888888889e-05,
"epoch": 0.4444444444444444,
"total_flos": 3058232721408000,
"step": 1000
},
{
"loss": 1.8009189453125,
"learning_rate": 3.3333333333333335e-05,
"epoch": 0.6666666666666666,
"total_flos": 4587349082112000,
"step": 1500
},
{
"loss": 1.770126953125,
"learning_rate": 2.777777777777778e-05,
"epoch": 0.8888888888888888,
"total_flos": 6116465442816000,
"step": 2000
},
{
"loss": 1.71751513671875,
"learning_rate": 2.2222222222222223e-05,
"epoch": 1.1111111111111112,
"total_flos": 7645581803520000,
"step": 2500
},
{
"loss": 1.6680078125,
"learning_rate": 1.6666666666666667e-05,
"epoch": 1.3333333333333333,
"total_flos": 9174698164224000,
"step": 3000
},
{
"loss": 1.6722744140625,
"learning_rate": 1.1111111111111112e-05,
"epoch": 1.5555555555555556,
"total_flos": 10703814524928000,
"step": 3500
},
{
"loss": 1.64707421875,
"learning_rate": 5.555555555555556e-06,
"epoch": 1.7777777777777777,
"total_flos": 12232930885632000,
"step": 4000
},
{
"loss": 1.667453125,
"learning_rate": 0.0,
"epoch": 2.0,
"total_flos": 13762047246336000,
"step": 4500
}
] |