Text Generation
Safetensors
GGUF
English
picolm_v3
picolm
slm
on-device
custom_code
causal-lm
reasoning
conversational
Instructions to use aethertp/PicoLM-V3-Pro-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-Pro-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-Pro-82M-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf aethertp/PicoLM-V3-Pro-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-Pro-82M-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf aethertp/PicoLM-V3-Pro-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-Pro-82M-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama cli -hf aethertp/PicoLM-V3-Pro-82M-Instruct:Q4_K_M
Use Docker
docker model run hf.co/aethertp/PicoLM-V3-Pro-82M-Instruct:Q4_K_M
- Llama new
- LM Studio
- Jan
- vLLM
How to use aethertp/PicoLM-V3-Pro-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-Pro-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-Pro-82M-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/aethertp/PicoLM-V3-Pro-82M-Instruct:Q4_K_M
- Ollama
How to use aethertp/PicoLM-V3-Pro-82M-Instruct with Ollama:
ollama run hf.co/aethertp/PicoLM-V3-Pro-82M-Instruct:Q4_K_M
- Unsloth Desktop
- Docker Model Runner
How to use aethertp/PicoLM-V3-Pro-82M-Instruct with Docker Model Runner:
docker model run hf.co/aethertp/PicoLM-V3-Pro-82M-Instruct:Q4_K_M
- Lemonade
How to use aethertp/PicoLM-V3-Pro-82M-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull aethertp/PicoLM-V3-Pro-82M-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.PicoLM-V3-Pro-82M-Instruct-Q4_K_M
List all available models
lemonade list
- Atomic Chat
Fix attention_mask signature in forward and prepare_inputs_for_generation
Browse files90 unmodified lines9192939495969720 unmodified lines1181191201211221231244 unmodified lines1291301311321331341353 unmodified lines13914014114214390 unmodified linesdef forward(self, x, cos, sin, pass_idx=0):norm_attn = self.attn_norm_1 if pass_idx == 0 else self.attn_norm_2norm_mlp = self.mlp_norm_1 if pass_idx == 0 else self.mlp_norm_2# V2 HATASI DÜZELTİLDİ: Doğru Kalıntı Yolux = x + self.attn(norm_attn(x), cos, sin)x = x + self.mlp(norm_mlp(x))return x20 unmodified linesdef set_input_embeddings(self, value):self.tok_embeddings = valuedef forward(self, input_ids=None, labels=None, **kwargs):B, S = input_ids.shapex_low = self.tok_embeddings(input_ids)x = self.emb_proj(x_low)4 unmodified linesx = block(x, cos, sin, pass_idx=p_idx)h = self.final_norm(x)# Factorized Tied Embedding Çıkışıh_low = F.linear(h, self.emb_proj.weight.t())logits = F.linear(h_low, self.tok_embeddings.weight)3 unmodified linesreturn CausalLMOutputWithPast(loss=loss, logits=logits)def prepare_inputs_for_generation(self, input_ids, **kwargs):return {"input_ids": input_ids}90 unmodified lines91929394959620 unmodified lines1171181191201211221231244 unmodified lines1291301311321331343 unmodified lines13813914014114214314414514690 unmodified linesdef forward(self, x, cos, sin, pass_idx=0):norm_attn = self.attn_norm_1 if pass_idx == 0 else self.attn_norm_2norm_mlp = self.mlp_norm_1 if pass_idx == 0 else self.mlp_norm_2x = x + self.attn(norm_attn(x), cos, sin)x = x + self.mlp(norm_mlp(x))return x20 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)x = self.emb_proj(x_low)4 unmodified linesx = block(x, cos, sin, pass_idx=p_idx)h = self.final_norm(x)h_low = F.linear(h, self.emb_proj.weight.t())logits = F.linear(h_low, self.tok_embeddings.weight)3 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:model_inputs["attention_mask"] = attention_maskreturn model_inputs
modeling_picolm_v3.py+8-5