Text Generation
Transformers
Safetensors
qwen2
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use reddest-panda/AutoMAD-RL-1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reddest-panda/AutoMAD-RL-1 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="reddest-panda/AutoMAD-RL-1") 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("reddest-panda/AutoMAD-RL-1") model = AutoModelForCausalLM.from_pretrained("reddest-panda/AutoMAD-RL-1", 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]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use reddest-panda/AutoMAD-RL-1 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "reddest-panda/AutoMAD-RL-1" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "reddest-panda/AutoMAD-RL-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/reddest-panda/AutoMAD-RL-1
- SGLang
How to use reddest-panda/AutoMAD-RL-1 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 "reddest-panda/AutoMAD-RL-1" \ --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": "reddest-panda/AutoMAD-RL-1", "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 "reddest-panda/AutoMAD-RL-1" \ --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": "reddest-panda/AutoMAD-RL-1", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use reddest-panda/AutoMAD-RL-1 with Docker Model Runner:
docker model run hf.co/reddest-panda/AutoMAD-RL-1
Commit History
-
Upload tokenizer
Verified signaturef2e70e0 -
Upload Qwen2ForCausalLM
Verified signature6da113e
-
Upload model
Verified signature7529eb6 -
Upload model
Verified signature40dffc1 -
Upload model
Verified signaturea903d78 -
Upload model
Verified signature793bb67 -
Upload model
Verified signature552fd8c -
Upload model
Verified signatureaecbc5f -
Upload model
Verified signature59ec202 -
Upload model
Verified signatureed64220 -
Upload model
Verified signaturedceab6b -
Upload model
Verified signaturec63d0a3 -
Upload model
Verified signaturecf544e0 -
Upload model
Verified signature28bb431
-
Upload model
Verified signature4aadbb3 -
Upload model
Verified signature1cb44b7 -
Upload model
Verified signaturefe3f137 -
Upload model
Verified signaturedef31e5 -
Upload model
Verified signature338c944 -
Upload model
Verified signature0e77f2b -
Upload model
Verified signaturef746dfc -
Upload model
Verified signature6b2fc5d -
Upload model
Verified signatureabc7efa -
Upload model
Verified signature96920b5 -
Upload model
Verified signaturee706153 -
Upload model
Verified signaturedd13558 -
Upload model
Verified signaturef59211f -
Upload model
Verified signature6c728f3 -
Upload model
Verified signature3d4de25 -
Upload model
Verified signatureea9b892 -
Upload model
Verified signature2f092ac -
Upload model
Verified signature41dd43e -
Upload model
Verified signatureeeb0d5c -
Upload model
Verified signaturef059906 -
Upload model
Verified signature0953ed9 -
Upload model
Verified signature62a5830 -
Upload model
Verified signaturec3f7a51 -
Upload model
Verified signature27daa7d -
Upload model
Verified signature1c4a2e8 -
Upload model
Verified signature2ce77a8 -
Upload model
Verified signatureda09272 -
Upload model
Verified signature9b127ef -
Upload model
Verified signaturec61d1a5 -
Upload model
Verified signatureb42a4c5 -
Upload model
Verified signature916e666 -
Upload model
Verified signature9db9466 -
Upload model
Verified signature9664e68 -
Upload model
Verified signature2f94500 -
Upload model
Verified signaturecc20346 -
Upload model
Verified signature94c0ebd