Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
custom_code
text-generation-inference
Instructions to use flytech/Ruckus-7b-ALPHA with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flytech/Ruckus-7b-ALPHA with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flytech/Ruckus-7b-ALPHA", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flytech/Ruckus-7b-ALPHA", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("flytech/Ruckus-7b-ALPHA", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flytech/Ruckus-7b-ALPHA with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flytech/Ruckus-7b-ALPHA" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "flytech/Ruckus-7b-ALPHA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flytech/Ruckus-7b-ALPHA
- SGLang
How to use flytech/Ruckus-7b-ALPHA 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 "flytech/Ruckus-7b-ALPHA" \ --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": "flytech/Ruckus-7b-ALPHA", "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 "flytech/Ruckus-7b-ALPHA" \ --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": "flytech/Ruckus-7b-ALPHA", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flytech/Ruckus-7b-ALPHA with Docker Model Runner:
docker model run hf.co/flytech/Ruckus-7b-ALPHA
Training in progress, step 900, checkpoint
Browse files
last-checkpoint/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 67143296
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:625c24ad2702a76c58af2535cf9c27d049e84fb7e01989449430541b3b0fbfce
|
| 3 |
size 67143296
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 33920095
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9478eb7b3f3027bb4070c6389e3eba25e44251abcc324317c1e9a1079f1fc04b
|
| 3 |
size 33920095
|
last-checkpoint/rng_state.pth
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 14575
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:518e379eb95b8761d691fa2f3663a7e6b2114c816fd3f33c63e566311da0ce7c
|
| 3 |
size 14575
|
last-checkpoint/scheduler.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 627
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4c1c649bd14a49756b729525a4732fa77be1d6c78a716ad6162c210414e48318
|
| 3 |
size 627
|
last-checkpoint/trainer_state.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
-
"epoch":
|
| 5 |
"eval_steps": 100,
|
| 6 |
-
"global_step":
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
@@ -111,13 +111,26 @@
|
|
| 111 |
"eval_samples_per_second": 2.038,
|
| 112 |
"eval_steps_per_second": 0.266,
|
| 113 |
"step": 800
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 114 |
}
|
| 115 |
],
|
| 116 |
"logging_steps": 100,
|
| 117 |
"max_steps": 1312,
|
| 118 |
"num_train_epochs": 8,
|
| 119 |
"save_steps": 100,
|
| 120 |
-
"total_flos":
|
| 121 |
"trial_name": null,
|
| 122 |
"trial_params": null
|
| 123 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 5.487804878048781,
|
| 5 |
"eval_steps": 100,
|
| 6 |
+
"global_step": 900,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 111 |
"eval_samples_per_second": 2.038,
|
| 112 |
"eval_steps_per_second": 0.266,
|
| 113 |
"step": 800
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"epoch": 5.49,
|
| 117 |
+
"learning_rate": 0.0002,
|
| 118 |
+
"loss": 0.0356,
|
| 119 |
+
"step": 900
|
| 120 |
+
},
|
| 121 |
+
{
|
| 122 |
+
"epoch": 5.49,
|
| 123 |
+
"eval_runtime": 33.8728,
|
| 124 |
+
"eval_samples_per_second": 2.037,
|
| 125 |
+
"eval_steps_per_second": 0.266,
|
| 126 |
+
"step": 900
|
| 127 |
}
|
| 128 |
],
|
| 129 |
"logging_steps": 100,
|
| 130 |
"max_steps": 1312,
|
| 131 |
"num_train_epochs": 8,
|
| 132 |
"save_steps": 100,
|
| 133 |
+
"total_flos": 7.473948323217408e+16,
|
| 134 |
"trial_name": null,
|
| 135 |
"trial_params": null
|
| 136 |
}
|