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)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Sweaterdog/Andy-4-tiny") model = AutoModelForCausalLM.from_pretrained("Sweaterdog/Andy-4-tiny") 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]:])) - 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
Create LICENSE
Browse files
LICENSE
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Andy 1.0 License
|
| 2 |
+
|
| 3 |
+
Copyright 2025 SWEATERDOG
|
| 4 |
+
|
| 5 |
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
+
of this Work (the “Work”), to deal in the Work without restriction, including
|
| 7 |
+
without limitation the rights to use, copy, modify, merge, publish, distribute,
|
| 8 |
+
sublicense, and/or sell copies of the Work, and to permit persons to whom the
|
| 9 |
+
Work is furnished to do so, subject to the following conditions:
|
| 10 |
+
|
| 11 |
+
1. Model Naming or Credit Link
|
| 12 |
+
The redistributed or derivative model’s name must include the term “Andy”,
|
| 13 |
+
OR the repository must credit https://huggingface.co/Sweaterdog in the
|
| 14 |
+
README or LICENSE file.
|
| 15 |
+
|
| 16 |
+
2. Shout-Out Clause
|
| 17 |
+
The following acknowledgment must appear in the README or equivalent:
|
| 18 |
+
“This work uses data and models created by @Sweaterdog.”
|
| 19 |
+
|
| 20 |
+
3. Retention of License and Notices
|
| 21 |
+
The above copyright notice, this license text, and the Shout-Out Clause
|
| 22 |
+
must be included in all copies or substantial portions of the Work.
|
| 23 |
+
|
| 24 |
+
4. No Additional Restrictions
|
| 25 |
+
You may not apply legal terms or technological measures that restrict
|
| 26 |
+
the exercise of the rights granted herein.
|
| 27 |
+
|
| 28 |
+
THE WORK IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND,
|
| 29 |
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
|
| 30 |
+
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, AND
|
| 31 |
+
NONINFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
| 32 |
+
CONTRIBUTORS BE LIABLE FOR ANY CLAIM, DAMAGES, OR OTHER LIABILITY,
|
| 33 |
+
WHETHER IN AN ACTION OF CONTRACT, TORT, OR OTHERWISE, ARISING FROM,
|
| 34 |
+
OUT OF, OR IN CONNECTION WITH THE WORK OR THE USE OR OTHER DEALINGS
|
| 35 |
+
IN THE WORK.
|