Text Generation
Safetensors
GGUF
English
picolm_v3
picolm
slm
on-device
custom_code
causal-lm
conversational
Instructions to use aethertp/PicoLM-V3-82M-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use aethertp/PicoLM-V3-82M-Instruct 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 aethertp/PicoLM-V3-82M-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf aethertp/PicoLM-V3-82M-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
Build from source code
git clone https://github.com/ggml-org/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-app # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama serve -hf aethertp/PicoLM-V3-82M-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
Use Docker
docker model run hf.co/aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use aethertp/PicoLM-V3-82M-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "aethertp/PicoLM-V3-82M-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "aethertp/PicoLM-V3-82M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
- Ollama
How to use aethertp/PicoLM-V3-82M-Instruct with Ollama:
ollama run hf.co/aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use aethertp/PicoLM-V3-82M-Instruct with Docker Model Runner:
docker model run hf.co/aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
- Lemonade
How to use aethertp/PicoLM-V3-82M-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull aethertp/PicoLM-V3-82M-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.PicoLM-V3-82M-Instruct-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Upload modeling_picolm_v3.py with huggingface_hub
Browse files97 unmodified lines989910010110210313 unmodified lines11711811912012112212314 unmodified lines13813914014114214314497 unmodified linesclass PicoLMV3ForCausalLM(PreTrainedModel, GenerationMixin):config_class = PicoLMV3Configbase_model_prefix = "model"def __init__(self, config):super().__init__(config)13 unmodified linesdef set_input_embeddings(self, value):self.tok_embeddings = value# attention_mask parametresi açıkça eklendidef forward(self, input_ids=None, attention_mask=None, labels=None, past_key_values=None, **kwargs):B, S = input_ids.shapex_low = self.tok_embeddings(input_ids)14 unmodified linesreturn CausalLMOutputWithPast(loss=loss, logits=logits)# prepare_inputs_for_generation attention_mask'ı artık yakalıyordef prepare_inputs_for_generation(self, input_ids, attention_mask=None, **kwargs):model_inputs = {"input_ids": input_ids}if attention_mask is not None:97 unmodified lines989910010110210310413 unmodified lines11811912012112212314 unmodified lines13813914014114214397 unmodified linesclass PicoLMV3ForCausalLM(PreTrainedModel, GenerationMixin):config_class = PicoLMV3Configbase_model_prefix = "model"_supports_cache_class = Falsedef __init__(self, config):super().__init__(config)13 unmodified linesdef set_input_embeddings(self, value):self.tok_embeddings = valuedef forward(self, input_ids=None, attention_mask=None, labels=None, past_key_values=None, **kwargs):B, S = input_ids.shapex_low = self.tok_embeddings(input_ids)14 unmodified linesreturn CausalLMOutputWithPast(loss=loss, logits=logits)def prepare_inputs_for_generation(self, input_ids, attention_mask=None, **kwargs):model_inputs = {"input_ids": input_ids}if attention_mask is not None:
modeling_picolm_v3.py+1-2