Text Generation
Transformers
PyTorch
TensorBoard
Safetensors
llama
Generated from Trainer
custom_code
text-generation-inference
Instructions to use flytech/Ruckus-7b-v17 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use flytech/Ruckus-7b-v17 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="flytech/Ruckus-7b-v17", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("flytech/Ruckus-7b-v17", trust_remote_code=True) model = AutoModelForCausalLM.from_pretrained("flytech/Ruckus-7b-v17", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use flytech/Ruckus-7b-v17 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "flytech/Ruckus-7b-v17" # 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-v17", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/flytech/Ruckus-7b-v17
- SGLang
How to use flytech/Ruckus-7b-v17 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-v17" \ --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-v17", "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-v17" \ --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-v17", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use flytech/Ruckus-7b-v17 with Docker Model Runner:
docker model run hf.co/flytech/Ruckus-7b-v17
Training in progress, step 500, 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 159967880
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:86d1203f2423da3ffe27c2ef38cbb370a5f658058cb421d4a0824388cd5d6e6b
|
| 3 |
size 159967880
|
last-checkpoint/optimizer.pt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 80630623
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b8315cfe6dd2e9536bfca70d98eb6965dcded2b70f198471afa13d0b60d2061
|
| 3 |
size 80630623
|
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:45fcd1744925ec4f917f97d5bdb7d6d048bb92668810d821167bb75c22b4836d
|
| 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:1352cee7a141eadc0dec5a54fb0352c24d3de0192e8f627a38660bb21a3c14e2
|
| 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,
|
|
@@ -59,13 +59,26 @@
|
|
| 59 |
"eval_samples_per_second": 1.851,
|
| 60 |
"eval_steps_per_second": 0.241,
|
| 61 |
"step": 400
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
}
|
| 63 |
],
|
| 64 |
"logging_steps": 100,
|
| 65 |
"max_steps": 1804,
|
| 66 |
"num_train_epochs": 11,
|
| 67 |
"save_steps": 100,
|
| 68 |
-
"total_flos":
|
| 69 |
"trial_name": null,
|
| 70 |
"trial_params": null
|
| 71 |
}
|
|
|
|
| 1 |
{
|
| 2 |
"best_metric": null,
|
| 3 |
"best_model_checkpoint": null,
|
| 4 |
+
"epoch": 3.048780487804878,
|
| 5 |
"eval_steps": 100,
|
| 6 |
+
"global_step": 500,
|
| 7 |
"is_hyper_param_search": false,
|
| 8 |
"is_local_process_zero": true,
|
| 9 |
"is_world_process_zero": true,
|
|
|
|
| 59 |
"eval_samples_per_second": 1.851,
|
| 60 |
"eval_steps_per_second": 0.241,
|
| 61 |
"step": 400
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"epoch": 3.05,
|
| 65 |
+
"learning_rate": 0.0002,
|
| 66 |
+
"loss": 0.0735,
|
| 67 |
+
"step": 500
|
| 68 |
+
},
|
| 69 |
+
{
|
| 70 |
+
"epoch": 3.05,
|
| 71 |
+
"eval_runtime": 37.2901,
|
| 72 |
+
"eval_samples_per_second": 1.85,
|
| 73 |
+
"eval_steps_per_second": 0.241,
|
| 74 |
+
"step": 500
|
| 75 |
}
|
| 76 |
],
|
| 77 |
"logging_steps": 100,
|
| 78 |
"max_steps": 1804,
|
| 79 |
"num_train_epochs": 11,
|
| 80 |
"save_steps": 100,
|
| 81 |
+
"total_flos": 4.179943738677658e+16,
|
| 82 |
"trial_name": null,
|
| 83 |
"trial_params": null
|
| 84 |
}
|