Text Generation
Transformers
Safetensors
English
llama
gaming
minecraft
mindcraft
conversational
text-generation-inference
Instructions to use Sweaterdog/Andy-4-tiny with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Sweaterdog/Andy-4-tiny with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Sweaterdog/Andy-4-tiny") 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("Sweaterdog/Andy-4-tiny") model = AutoModelForCausalLM.from_pretrained("Sweaterdog/Andy-4-tiny", 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 Sweaterdog/Andy-4-tiny with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Sweaterdog/Andy-4-tiny" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Sweaterdog/Andy-4-tiny", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Sweaterdog/Andy-4-tiny
- SGLang
How to use Sweaterdog/Andy-4-tiny 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 "Sweaterdog/Andy-4-tiny" \ --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": "Sweaterdog/Andy-4-tiny", "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 "Sweaterdog/Andy-4-tiny" \ --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": "Sweaterdog/Andy-4-tiny", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Sweaterdog/Andy-4-tiny with Docker Model Runner:
docker model run hf.co/Sweaterdog/Andy-4-tiny
Commit History
-
Update README.md
Verified signatureb78f248
-
Upload 8 files
Verified signature49a04dc
-
Delete Andy-4-tiny.Q8_0.gguf
Verified signatured30b977 -
Delete Andy-4-tiny.Q4_K_M.gguf
Verified signaturefc239ba -
Delete Andy-4-tiny.F16.gguf
Verified signatureca2efcf
-
Rename unsloth.Q8_0.gguf to Andy-4-tiny.Q8_0.gguf
Verified signature059cc9b -
Rename unsloth.Q4_K_M.gguf to Andy-4-tiny.Q4_K_M.gguf
Verified signaturee03b855 -
Rename unsloth.F16.gguf to Andy-4-tiny.F16.gguf
Verified signatureb7cdf4d -
(Trained with Unsloth)
Verified signature5f8d4ac -
(Trained with Unsloth)
Verified signature74ab657 -
(Trained with Unsloth)
Verified signature4fec7f7 -
(Trained with Unsloth)
Verified signature2447ebc -
(Trained with Unsloth)
Verified signaturec5e3f20 -
Update README.md
Verified signature3d4d23e -
Update README.md
Verified signaturecca7411
-
Update README.md
Verified signatureb97c214 -
Create README.md
Verified signaturebed4766
-
Create LICENSE
Verified signature03f3c51 -
initial commit
Verified signatureac15903