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
Commit History
-
Upload tokenizer
ba22ff8 -
Upload LlamaForCausalLM
830b69b -
Model save
9c53cc2 -
Training in progress, step 1800, checkpoint
78d7a97 -
Training in progress, step 1800
c3aee9a -
Training in progress, step 1700, checkpoint
437ba93 -
Training in progress, step 1700
a010918 -
Training in progress, step 1600, checkpoint
7e8d830 -
Training in progress, step 1600
74f0107 -
Training in progress, step 1500, checkpoint
20a16b6 -
Training in progress, step 1500
26c74ef -
Training in progress, step 1400, checkpoint
2e92d28 -
Training in progress, step 1400
c47f57e -
Training in progress, step 1300, checkpoint
bf46a0e -
Training in progress, step 1300
84c892d -
Training in progress, step 1200, checkpoint
26c27db -
Training in progress, step 1200
159237d -
Training in progress, step 1100, checkpoint
bc986e7 -
Training in progress, step 1100
ce197e0 -
Training in progress, step 1000, checkpoint
e7e95a3 -
Training in progress, step 1000
2b054fa -
Training in progress, step 900, checkpoint
a5ac8fc -
Training in progress, step 900
c1df4fd -
Training in progress, step 800, checkpoint
821a6e5 -
Training in progress, step 800
e0c2de9 -
Training in progress, step 700, checkpoint
881a40b -
Training in progress, step 700
7c0357d -
Training in progress, step 600, checkpoint
f9a3274 -
Training in progress, step 600
28a996a -
Training in progress, step 500, checkpoint
26e64b0 -
Training in progress, step 500
191f452 -
Training in progress, step 400, checkpoint
c13bfd9 -
Training in progress, step 400
d9db009 -
Training in progress, step 300, checkpoint
7693fa1 -
Training in progress, step 300
1125538 -
Training in progress, step 200, checkpoint
0fda82c -
Training in progress, step 200
803ef69 -
Training in progress, step 100, checkpoint
4cf6d13 -
Training in progress, step 100
cba3a69 -
initial commit
7083078