Instructions to use DebateLabKIT/cript-large with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use DebateLabKIT/cript-large with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="DebateLabKIT/cript-large")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("DebateLabKIT/cript-large") model = AutoModelForCausalLM.from_pretrained("DebateLabKIT/cript-large", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use DebateLabKIT/cript-large with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "DebateLabKIT/cript-large" # 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-large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/DebateLabKIT/cript-large
- SGLang
How to use DebateLabKIT/cript-large 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-large" \ --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-large", "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-large" \ --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-large", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use DebateLabKIT/cript-large with Docker Model Runner:
docker model run hf.co/DebateLabKIT/cript-large
File size: 1,492 Bytes
69a858e | 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": 1.6234498291015624,
"learning_rate": 4.4444444444444447e-05,
"epoch": 0.2222222222222222,
"total_flos": 9511281623040000,
"step": 500
},
{
"loss": 1.4528057861328125,
"learning_rate": 3.888888888888889e-05,
"epoch": 0.4444444444444444,
"total_flos": 19022563246080000,
"step": 1000
},
{
"loss": 1.400372802734375,
"learning_rate": 3.3333333333333335e-05,
"epoch": 0.6666666666666666,
"total_flos": 28533844869120000,
"step": 1500
},
{
"loss": 1.364806640625,
"learning_rate": 2.777777777777778e-05,
"epoch": 0.8888888888888888,
"total_flos": 38045126492160000,
"step": 2000
},
{
"loss": 1.25629931640625,
"learning_rate": 2.2222222222222223e-05,
"epoch": 1.1111111111111112,
"total_flos": 47556408115200000,
"step": 2500
},
{
"loss": 1.16014453125,
"learning_rate": 1.6666666666666667e-05,
"epoch": 1.3333333333333333,
"total_flos": 57067689738240000,
"step": 3000
},
{
"loss": 1.15758203125,
"learning_rate": 1.1111111111111112e-05,
"epoch": 1.5555555555555556,
"total_flos": 66578971361280000,
"step": 3500
},
{
"loss": 1.133671875,
"learning_rate": 5.555555555555556e-06,
"epoch": 1.7777777777777777,
"total_flos": 76090252984320000,
"step": 4000
},
{
"loss": 1.144353515625,
"learning_rate": 0.0,
"epoch": 2.0,
"total_flos": 85601534607360000,
"step": 4500
}
] |