Text Generation
Transformers
Safetensors
English
llama
course-assignment
sft
text-generation-inference
Instructions to use centenohugo/SFTChatBot-comp4221 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use centenohugo/SFTChatBot-comp4221 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="centenohugo/SFTChatBot-comp4221")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("centenohugo/SFTChatBot-comp4221") model = AutoModelForCausalLM.from_pretrained("centenohugo/SFTChatBot-comp4221", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use centenohugo/SFTChatBot-comp4221 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "centenohugo/SFTChatBot-comp4221" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "centenohugo/SFTChatBot-comp4221", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/centenohugo/SFTChatBot-comp4221
- SGLang
How to use centenohugo/SFTChatBot-comp4221 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 "centenohugo/SFTChatBot-comp4221" \ --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": "centenohugo/SFTChatBot-comp4221", "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 "centenohugo/SFTChatBot-comp4221" \ --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": "centenohugo/SFTChatBot-comp4221", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use centenohugo/SFTChatBot-comp4221 with Docker Model Runner:
docker model run hf.co/centenohugo/SFTChatBot-comp4221
Download loss.csv from centenohugo/SFTChatBot-comp4221: direct link, hf CLI and curl.
- Browser
- Download file 2.28 kB
-
https://huggingface.co/centenohugo/SFTChatBot-comp4221/resolve/main/loss.csv
- Command line
-
hf download hf://centenohugo/SFTChatBot-comp4221/loss.csv
-
curl -L -o loss.csv https://huggingface.co/centenohugo/SFTChatBot-comp4221/resolve/main/loss.csv
2.28 kB
| optimizer_step,loss | |
| 1,3.2041600048542023 | |
| 2,2.8045691549777985 | |
| 3,2.6097036004066467 | |
| 4,2.451203942298889 | |
| 5,2.38986274600029 | |
| 6,2.2307218611240387 | |
| 7,2.1626369655132294 | |
| 8,2.117161273956299 | |
| 9,2.076439529657364 | |
| 10,2.035425543785095 | |
| 11,2.0051597952842712 | |
| 12,1.9630887508392334 | |
| 13,1.9303503185510635 | |
| 14,1.9108162075281143 | |
| 15,1.8741955161094666 | |
| 16,1.8452925980091095 | |
| 17,1.816061720252037 | |
| 18,1.802303895354271 | |
| 19,1.774542510509491 | |
| 20,1.749196618795395 | |
| 21,1.7266180962324142 | |
| 22,1.7132863849401474 | |
| 23,1.692336693406105 | |
| 24,1.6748197674751282 | |
| 25,1.6591353714466095 | |
| 26,1.6525245755910873 | |
| 27,1.6386102139949799 | |
| 28,1.6223942041397095 | |
| 29,1.6102860867977142 | |
| 30,1.6112321764230728 | |
| 31,1.5991466343402863 | |
| 32,1.5921160727739334 | |
| 33,1.5856612175703049 | |
| 34,1.5797682851552963 | |
| 35,1.5714138746261597 | |
| 36,1.5646881461143494 | |
| 37,1.5571563839912415 | |
| 38,1.5553936958312988 | |
| 39,1.543491154909134 | |
| 40,1.5445241332054138 | |
| 41,1.539928287267685 | |
| 42,1.537136361002922 | |
| 43,1.5298142284154892 | |
| 44,1.5295319557189941 | |
| 45,1.527397483587265 | |
| 46,1.5219879150390625 | |
| 47,1.518655613064766 | |
| 48,1.514509603381157 | |
| 49,1.5131441205739975 | |
| 50,1.5112463384866714 | |
| 51,1.5095771700143814 | |
| 52,1.507374420762062 | |
| 53,1.5048355758190155 | |
| 54,1.5051880776882172 | |
| 55,1.5012906938791275 | |
| 56,1.4983033239841461 | |
| 57,1.497656911611557 | |
| 58,1.4925117045640945 | |
| 59,1.4916151612997055 | |
| 60,1.488780677318573 | |
| 61,1.4919885993003845 | |
| 62,1.485721841454506 | |
| 63,1.487552210688591 | |
| 64,1.4863217324018478 | |
| 65,1.484335109591484 | |
| 66,1.4839036613702774 | |
| 67,1.4825479984283447 | |
| 68,1.4798609465360641 | |
| 69,1.4807386547327042 | |
| 70,1.4782861918210983 | |
| 71,1.4790543913841248 | |
| 72,1.4768692255020142 | |
| 73,1.4739327281713486 | |
| 74,1.474590316414833 | |
| 75,1.473222702741623 | |
| 76,1.4720032960176468 | |
| 77,1.4710141569375992 | |
| 78,1.470968335866928 | |
| 79,1.4698781669139862 | |
| 80,1.4685330539941788 | |
| 81,1.4671162813901901 | |
| 82,1.4676666110754013 | |
| 83,1.467156320810318 | |
| 84,1.4661712646484375 | |
| 85,1.463846430182457 | |
| 86,1.4635335057973862 | |
| 87,1.4631187915802002 | |
| 88,1.4601548612117767 | |
| 89,1.4633246511220932 | |
| 90,1.4600950628519058 | |
| 91,1.4631467461585999 | |
| 92,1.4623459428548813 | |
| 93,1.4622388780117035 | |
| 94,1.4586863666772842 | |
| 95,1.4586564153432846 | |
| 96,1.4576647877693176 | |
| 97,1.457666277885437 | |
| 98,1.4598228186368942 | |
| 99,1.4578223377466202 | |
| 100,1.4559610784053802 | |