Text Generation
Transformers
TensorBoard
Safetensors
PEFT
qwen2
Trained with AutoTrain
text-generation-inference
conversational
Instructions to use reddest-panda/AutoMAD-small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use reddest-panda/AutoMAD-small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="reddest-panda/AutoMAD-small") 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-small") model = AutoModelForCausalLM.from_pretrained("reddest-panda/AutoMAD-small", 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]:])) - PEFT
How to use reddest-panda/AutoMAD-small with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use reddest-panda/AutoMAD-small with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "reddest-panda/AutoMAD-small" # 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-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/reddest-panda/AutoMAD-small
- SGLang
How to use reddest-panda/AutoMAD-small 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-small" \ --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-small", "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-small" \ --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-small", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use reddest-panda/AutoMAD-small with Docker Model Runner:
docker model run hf.co/reddest-panda/AutoMAD-small
Commit History
-
Upload Qwen2ForCausalLM
Verified signature610a41f -
Delete config.json
Verified signatureae272be -
Manually added config file
Verified signatured3e03f2 -
Update README.md
Verified signature98ec9dd
-
Upload folder using huggingface_hub
Verified signature9348aa9 -
Upload folder using huggingface_hub
Verified signature410f2cd -
Upload folder using huggingface_hub
Verified signaturee0705ea -
Upload folder using huggingface_hub
Verified signaturec6a3dcf -
Upload folder using huggingface_hub
Verified signature74f3831 -
Upload folder using huggingface_hub
Verified signature8c00cbf -
Upload folder using huggingface_hub
Verified signature203b3e6 -
Upload folder using huggingface_hub
Verified signature7f78f01 -
Upload folder using huggingface_hub
Verified signature72de131 -
Upload folder using huggingface_hub
Verified signature38a2ca4 -
Upload folder using huggingface_hub
Verified signature3dda07b -
Upload folder using huggingface_hub
Verified signature2fea124 -
Upload folder using huggingface_hub
Verified signature1e3cfea -
Upload folder using huggingface_hub
Verified signature5a8cc15 -
Upload folder using huggingface_hub
Verified signature0a26b75 -
Upload folder using huggingface_hub
Verified signature0739af2 -
Upload folder using huggingface_hub
Verified signature07d040f -
Upload folder using huggingface_hub
Verified signature3a5499f -
Upload folder using huggingface_hub
Verified signature2a49c06 -
Upload folder using huggingface_hub
Verified signaturea42fe5f -
Upload folder using huggingface_hub
Verified signatureaab15d0 -
Upload folder using huggingface_hub
Verified signature4091205 -
Upload folder using huggingface_hub
Verified signatureb65a72d -
Upload folder using huggingface_hub
Verified signature8b38a38 -
Upload folder using huggingface_hub
Verified signature1f0d249 -
Upload folder using huggingface_hub
Verified signature840f891 -
Upload folder using huggingface_hub
Verified signatureea9a3f4 -
Upload folder using huggingface_hub
Verified signature629838e -
Upload folder using huggingface_hub
Verified signature23fd6fe -
Upload folder using huggingface_hub
Verified signaturedfbd58b -
Upload folder using huggingface_hub
Verified signature75d0fc3 -
Upload folder using huggingface_hub
Verified signatureeb9e406 -
Upload folder using huggingface_hub
Verified signatured058aa9 -
Upload folder using huggingface_hub
Verified signature6d61b11 -
Upload folder using huggingface_hub
Verified signature5191cef -
Upload folder using huggingface_hub
Verified signature7ba7629 -
Upload folder using huggingface_hub
Verified signatureec724ef -
Upload folder using huggingface_hub
Verified signature8da2246 -
Upload folder using huggingface_hub
Verified signature27dfc68 -
Upload folder using huggingface_hub
Verified signaturefade6f2 -
Upload folder using huggingface_hub
Verified signature161ff7c -
Upload folder using huggingface_hub
Verified signatured8ca71d -
Upload folder using huggingface_hub
Verified signature1908e02 -
Upload folder using huggingface_hub
Verified signature052347a -
Upload folder using huggingface_hub
Verified signaturecc7d890 -
Upload folder using huggingface_hub
Verified signature6480210