Text Generation
Transformers
TensorBoard
Safetensors
PEFT
llama
text-generation-inference
conversational
Instructions to use retronic/Colox_The1st with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use retronic/Colox_The1st with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="retronic/Colox_The1st") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("retronic/Colox_The1st") model = AutoModelForCausalLM.from_pretrained("retronic/Colox_The1st", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use retronic/Colox_The1st with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use retronic/Colox_The1st with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "retronic/Colox_The1st" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "retronic/Colox_The1st", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/retronic/Colox_The1st
- SGLang
How to use retronic/Colox_The1st 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 "retronic/Colox_The1st" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "retronic/Colox_The1st", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "retronic/Colox_The1st" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "retronic/Colox_The1st", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use retronic/Colox_The1st with Docker Model Runner:
docker model run hf.co/retronic/Colox_The1st
Commit History
-
Delete training_params.json
Verified signature39c5280
-
Update README.md
Verified signature07d42ff
-
Update README.md
Verified signature20fa8a3
-
Update README.md
Verified signature2eabcb6
-
Update README.md
Verified signaturedf74f22 -
Update README.md
Verified signature42f86dd -
Update README.md
Verified signaturecefb1bb
-
Create config.json
Verified signature67cb2dd
-
Upload folder using huggingface_hub
Verified signatureb081ebd -
Upload folder using huggingface_hub
Verified signaturebd57220 -
Upload folder using huggingface_hub
Verified signature0f525c2 -
Upload folder using huggingface_hub
Verified signaturea4936e3 -
Upload folder using huggingface_hub
Verified signaturec994033 -
Upload folder using huggingface_hub
Verified signature89db4ce
-
Upload folder using huggingface_hub
Verified signature9cfe4e6 -
Upload folder using huggingface_hub
Verified signature5a37fdb -
Upload folder using huggingface_hub
Verified signaturec426242 -
Upload folder using huggingface_hub
Verified signature83699f2 -
Upload folder using huggingface_hub
Verified signature2c502fd -
Upload folder using huggingface_hub
Verified signature294ce8b -
Upload folder using huggingface_hub
Verified signaturea58b512 -
Upload folder using huggingface_hub
Verified signaturede4560c -
Upload folder using huggingface_hub
Verified signature3672b04 -
Upload folder using huggingface_hub
Verified signature814e62e -
Upload folder using huggingface_hub
Verified signatured822fad -
Upload folder using huggingface_hub
Verified signature55579e9 -
Upload folder using huggingface_hub
Verified signatureccfe1c3 -
Upload folder using huggingface_hub
Verified signature0632a39 -
Upload folder using huggingface_hub
Verified signature5683db8 -
Upload folder using huggingface_hub
Verified signature86e6450 -
Upload folder using huggingface_hub
Verified signature2d90dd4 -
Upload folder using huggingface_hub
Verified signatured53079b -
Upload folder using huggingface_hub
Verified signaturec93f1b6 -
Upload folder using huggingface_hub
Verified signatureb4b03cb -
Upload folder using huggingface_hub
Verified signature75be72e -
Upload folder using huggingface_hub
Verified signature25d5c70 -
Upload folder using huggingface_hub
Verified signaturea466b1f -
Upload folder using huggingface_hub
Verified signatured966a0e -
Upload folder using huggingface_hub
Verified signature23f0e00 -
Upload folder using huggingface_hub
Verified signature534c0c0 -
Upload folder using huggingface_hub
Verified signature758faf5 -
Upload folder using huggingface_hub
Verified signature585c26a -
Upload folder using huggingface_hub
Verified signature1f9fe6c -
Upload folder using huggingface_hub
Verified signaturec48069b -
Upload folder using huggingface_hub
Verified signatured86b8e5 -
Upload folder using huggingface_hub
Verified signatureacd4267 -
Upload folder using huggingface_hub
Verified signature526caeb -
Upload folder using huggingface_hub
Verified signature452ce57 -
Upload folder using huggingface_hub
Verified signaturebbfe97e -
Upload folder using huggingface_hub
Verified signature673303f