Text Generation
Transformers
TensorBoard
Safetensors
PEFT
qwen2
Trained with AutoTrain
text-generation-inference
conversational
Instructions to use Uynaity/AutoTrain-Qwen-Rui-Elite with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Uynaity/AutoTrain-Qwen-Rui-Elite with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Uynaity/AutoTrain-Qwen-Rui-Elite") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Uynaity/AutoTrain-Qwen-Rui-Elite") model = AutoModelForCausalLM.from_pretrained("Uynaity/AutoTrain-Qwen-Rui-Elite", 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=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - PEFT
How to use Uynaity/AutoTrain-Qwen-Rui-Elite with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Uynaity/AutoTrain-Qwen-Rui-Elite with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Uynaity/AutoTrain-Qwen-Rui-Elite" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Uynaity/AutoTrain-Qwen-Rui-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Uynaity/AutoTrain-Qwen-Rui-Elite
- SGLang
How to use Uynaity/AutoTrain-Qwen-Rui-Elite 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 "Uynaity/AutoTrain-Qwen-Rui-Elite" \ --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": "Uynaity/AutoTrain-Qwen-Rui-Elite", "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 "Uynaity/AutoTrain-Qwen-Rui-Elite" \ --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": "Uynaity/AutoTrain-Qwen-Rui-Elite", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Uynaity/AutoTrain-Qwen-Rui-Elite with Docker Model Runner:
docker model run hf.co/Uynaity/AutoTrain-Qwen-Rui-Elite
Upload folder using huggingface_hub
Browse files
runs/Nov09_17-27-01_520fd72ff7e6/events.out.tfevents.1731173610.520fd72ff7e6.7830.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2ce7324a85ea4cecd1717e7f183ee8c8bad09ba5dcff8348c8ed5a2f683d685
|
| 3 |
+
size 6927
|
runs/Nov09_18-29-03_520fd72ff7e6/events.out.tfevents.1731177107.520fd72ff7e6.23839.0
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c139be07d9796cc3b45f5854df4698c1d05a65e7c57f31053546c1d0b3793934
|
| 3 |
+
size 5957
|