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
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,6 +1,5 @@
|
|
| 1 |
---
|
| 2 |
tags:
|
| 3 |
-
- autotrain
|
| 4 |
- text-generation-inference
|
| 5 |
- text-generation
|
| 6 |
- peft
|
|
@@ -13,9 +12,12 @@ widget:
|
|
| 13 |
license: other
|
| 14 |
---
|
| 15 |
|
| 16 |
-
#
|
|
|
|
|
|
|
|
|
|
|
|
|
| 17 |
|
| 18 |
-
This model was trained using AutoTrain. For more information, please visit [AutoTrain](https://hf.co/docs/autotrain).
|
| 19 |
|
| 20 |
# Usage
|
| 21 |
|
|
|
|
| 1 |
---
|
| 2 |
tags:
|
|
|
|
| 3 |
- text-generation-inference
|
| 4 |
- text-generation
|
| 5 |
- peft
|
|
|
|
| 12 |
license: other
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# What this is?
|
| 16 |
+
This is the first trained model of Colox during the process, this will be trained further more for the final result.
|
| 17 |
+
|
| 18 |
+
# DISCLAIMER
|
| 19 |
+
This model has not been trained yet as of July 1st, 2025 at 3:39PM EDT, this is experimental and this model will be updated overtime.
|
| 20 |
|
|
|
|
| 21 |
|
| 22 |
# Usage
|
| 23 |
|