Instructions to use Pondsiders/le-chaton-floppe with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Pondsiders/le-chaton-floppe with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Pondsiders/le-chaton-floppe")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Pondsiders/le-chaton-floppe") model = AutoModelForCausalLM.from_pretrained("Pondsiders/le-chaton-floppe", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use Pondsiders/le-chaton-floppe with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf Pondsiders/le-chaton-floppe:Q4_0 # Run inference directly in the terminal: llama cli -hf Pondsiders/le-chaton-floppe:Q4_0
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf Pondsiders/le-chaton-floppe:Q4_0 # Run inference directly in the terminal: llama cli -hf Pondsiders/le-chaton-floppe:Q4_0
Use pre-built binary
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Pondsiders/le-chaton-floppe:Q4_0 # Run inference directly in the terminal: ./llama-cli -hf Pondsiders/le-chaton-floppe:Q4_0
Build from source code
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Pondsiders/le-chaton-floppe:Q4_0 # Run inference directly in the terminal: ./build/bin/llama-cli -hf Pondsiders/le-chaton-floppe:Q4_0
Use Docker
docker model run hf.co/Pondsiders/le-chaton-floppe:Q4_0
- LM Studio
- Jan
- vLLM
How to use Pondsiders/le-chaton-floppe with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Pondsiders/le-chaton-floppe" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pondsiders/le-chaton-floppe", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/Pondsiders/le-chaton-floppe:Q4_0
- SGLang
How to use Pondsiders/le-chaton-floppe 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 "Pondsiders/le-chaton-floppe" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pondsiders/le-chaton-floppe", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "Pondsiders/le-chaton-floppe" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Pondsiders/le-chaton-floppe", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Ollama
How to use Pondsiders/le-chaton-floppe with Ollama:
ollama run hf.co/Pondsiders/le-chaton-floppe:Q4_0
- Unsloth Desktop
- Docker Model Runner
How to use Pondsiders/le-chaton-floppe with Docker Model Runner:
docker model run hf.co/Pondsiders/le-chaton-floppe:Q4_0
- Lemonade
How to use Pondsiders/le-chaton-floppe with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Pondsiders/le-chaton-floppe:Q4_0
Run and chat with the model
lemonade run user.le-chaton-floppe-Q4_0
List all available models
lemonade list
- Atomic Chat
Le Chaton Floppe: a language model that fits on a floppy
Once upon a time we were playing with small language models and wondered if we could create a language model that speaks fluently but that's small enough to fit on a floppy disk.
We are proud to announce: kind of!
We started with the work of Eldan and Li 2023 who discovered, among other things, that when it comes to transformer language models, width brings knowledge and depth brings coherence. A tall, narrow model should have decent coherence with a very small vocabulary, like the imagination of a three-year-old.
We won't bore you with the story of how we got there, but we ultimately settled on this architecture.
| params | n_layers | d_model | n_heads | d_head | d_ff | vocab | context |
|---|---|---|---|---|---|---|---|
| 2,418,720 | 6 | 160 | 5 | 32 | 512 | 2,048 | 512 |
We called this configuration le chaton floppe.
The le_chaton_floppe.ipynb notebook is available on GitHub.
The GGUF artifact produced by the notebook is compatible with llama.cpp. Obviously since this model is pre-trained only, you'll want to use llama-completion and not llama-cli to interact with it as shown below.
% llama-completion \
-hf Pondsiders/le-chaton-floppe \
--temperature 0.8 \
--top-p 0.95 \
--seed 1986 \
--prompt "Once" 2>/dev/null
Once upon a time, there was a little boy named Tim. Tim loved to play with his toy car. He would push it with his hands and watch it go slow, slow or slow, fast. Tim had so much fun with his toy car.
One day, Tim's toy car broke. He was very sad and wanted to play with it too. He thought, "I need to fix my car, and I can't play with it again." Tim went to his mom and said, "Mom, my car is broken. Can you help me fix it?"
His mom smiled and said, "Of course, Tim. Let's try to fix it together." They worked hard and made a new toy car with a new wheel. Tim was happy that he could fix his car, and he thanked his mom for helping him. From that day on, Tim played with his toy car in the toy car, and it belonged to his mom. [end of text]
As you can see, the model is fluent in English and capable of holding a thread through about the first two paragraphs, but as we get deeper into the sequence coherence drops fast.
Still. Pretty neat that it fits on a floppy!
- Downloads last month
- 270
