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
Upload configuration_picolm_v3.py with huggingface_hub
Browse files- configuration_picolm_v3.py +13 -0
configuration_picolm_v3.py
CHANGED
|
@@ -2,6 +2,12 @@ from transformers import PretrainedConfig
|
|
| 2 |
|
| 3 |
class PicoLMV3Config(PretrainedConfig):
|
| 4 |
model_type = "picolm_v3"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
def __init__(
|
| 7 |
self,
|
|
@@ -22,25 +28,32 @@ class PicoLMV3Config(PretrainedConfig):
|
|
| 22 |
eos_token_id: int = 2,
|
| 23 |
pad_token_id: int = 3,
|
| 24 |
tie_word_embeddings: bool = True,
|
|
|
|
| 25 |
**kwargs,
|
| 26 |
):
|
| 27 |
self.vocab_size = vocab_size
|
| 28 |
self.emb_dim = emb_dim
|
| 29 |
self.dim = dim
|
|
|
|
| 30 |
self.n_layers = n_layers
|
|
|
|
| 31 |
self.layer_repeat = layer_repeat
|
| 32 |
self.n_heads = n_heads
|
|
|
|
| 33 |
self.n_kv_heads = n_kv_heads
|
|
|
|
| 34 |
self.head_dim = head_dim
|
| 35 |
self.intermediate_dim = intermediate_dim
|
| 36 |
self.max_seq_len = max_seq_len
|
| 37 |
self.orig_seq_len = orig_seq_len
|
| 38 |
self.norm_eps = norm_eps
|
| 39 |
self.rope_theta = rope_theta
|
|
|
|
| 40 |
super().__init__(
|
| 41 |
bos_token_id=bos_token_id,
|
| 42 |
eos_token_id=eos_token_id,
|
| 43 |
pad_token_id=pad_token_id,
|
| 44 |
tie_word_embeddings=tie_word_embeddings,
|
|
|
|
| 45 |
**kwargs,
|
| 46 |
)
|
|
|
|
| 2 |
|
| 3 |
class PicoLMV3Config(PretrainedConfig):
|
| 4 |
model_type = "picolm_v3"
|
| 5 |
+
attribute_map = {
|
| 6 |
+
"hidden_size": "dim",
|
| 7 |
+
"num_hidden_layers": "n_layers",
|
| 8 |
+
"num_attention_heads": "n_heads",
|
| 9 |
+
"num_key_value_heads": "n_kv_heads",
|
| 10 |
+
}
|
| 11 |
|
| 12 |
def __init__(
|
| 13 |
self,
|
|
|
|
| 28 |
eos_token_id: int = 2,
|
| 29 |
pad_token_id: int = 3,
|
| 30 |
tie_word_embeddings: bool = True,
|
| 31 |
+
use_cache: bool = False,
|
| 32 |
**kwargs,
|
| 33 |
):
|
| 34 |
self.vocab_size = vocab_size
|
| 35 |
self.emb_dim = emb_dim
|
| 36 |
self.dim = dim
|
| 37 |
+
self.hidden_size = dim
|
| 38 |
self.n_layers = n_layers
|
| 39 |
+
self.num_hidden_layers = n_layers
|
| 40 |
self.layer_repeat = layer_repeat
|
| 41 |
self.n_heads = n_heads
|
| 42 |
+
self.num_attention_heads = n_heads
|
| 43 |
self.n_kv_heads = n_kv_heads
|
| 44 |
+
self.num_key_value_heads = n_kv_heads
|
| 45 |
self.head_dim = head_dim
|
| 46 |
self.intermediate_dim = intermediate_dim
|
| 47 |
self.max_seq_len = max_seq_len
|
| 48 |
self.orig_seq_len = orig_seq_len
|
| 49 |
self.norm_eps = norm_eps
|
| 50 |
self.rope_theta = rope_theta
|
| 51 |
+
self.use_cache = use_cache
|
| 52 |
super().__init__(
|
| 53 |
bos_token_id=bos_token_id,
|
| 54 |
eos_token_id=eos_token_id,
|
| 55 |
pad_token_id=pad_token_id,
|
| 56 |
tie_word_embeddings=tie_word_embeddings,
|
| 57 |
+
use_cache=use_cache,
|
| 58 |
**kwargs,
|
| 59 |
)
|