Text Generation
Transformers
Safetensors
qwen2
conversational
text-generation-inference
4-bit precision
bitsandbytes
Instructions to use reddest-panda/AutoMAD-RL-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reddest-panda/AutoMAD-RL-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="reddest-panda/AutoMAD-RL-2") 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-2") model = AutoModelForCausalLM.from_pretrained("reddest-panda/AutoMAD-RL-2", 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-2 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-2" # 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-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/reddest-panda/AutoMAD-RL-2
- SGLang
How to use reddest-panda/AutoMAD-RL-2 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-2" \ --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-2", "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-2" \ --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-2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use reddest-panda/AutoMAD-RL-2 with Docker Model Runner:
docker model run hf.co/reddest-panda/AutoMAD-RL-2
Commit History
-
Upload Qwen2ForCausalLM
Verified signaturefc2d0e6 -
Upload tokenizer
Verified signature014aa88 -
Delete vocab.json
Verified signature9ab02c8 -
Delete tokenizer_config.json
Verified signature9fe3872 -
Delete tokenizer.json
Verified signature47778bc -
Delete special_tokens_map.json
Verified signature716e1c8 -
Delete model.safetensors
Verified signature71eb638 -
Delete merges.txt
Verified signature0136c83 -
Delete generation_config.json
Verified signature5f20109 -
Delete config.json
Verified signature3486c84 -
Delete added_tokens.json
Verified signature2256dea
-
Upload Qwen2ForCausalLM
Verified signature04bb474 -
Upload tokenizer
Verified signature49dcbd0
-
Upload model
Verified signature4ed5fc2 -
Upload model
Verified signatureebcd7e1 -
Upload model
Verified signature094c6fb -
Upload model
Verified signature04f3795 -
Upload model
Verified signatureb266d4e -
Upload model
Verified signature0f6b3bb -
Upload model
Verified signature2cedc2d -
Upload model
Verified signaturec87b158 -
Upload model
Verified signature670fb3e -
Upload model
Verified signature311cde6 -
Upload model
Verified signatureb81ff1e -
Upload model
Verified signature13d3703 -
Upload model
Verified signature298d032 -
Upload model
Verified signature3190ec0 -
Upload model
Verified signature98b1ec3 -
Upload model
Verified signature4bc0442 -
Upload model
Verified signaturebff7040 -
Upload model
Verified signature24a27ac
-
Upload model
Verified signaturee4b2b54 -
Upload model
Verified signaturee14cfe5 -
Upload model
Verified signatureed1a362 -
Upload model
Verified signaturee5505df -
Upload model
Verified signature085edad -
Upload model
Verified signatured194abe -
Upload model
Verified signature015809b -
Upload model
Verified signature3c1ce58 -
Upload model
Verified signaturea9a648f -
Upload model
Verified signatureffedf75 -
Upload model
Verified signaturedd8ad96 -
Upload model
Verified signature6ef24d6 -
Upload model
Verified signatured244744 -
Upload model
Verified signature21db3af -
Upload model
Verified signature5e613f5 -
Upload model
Verified signature5a5760e -
Upload model
Verified signature67076b2 -
Upload model
Verified signature4dd147f -
Upload model
Verified signature3ed3344