Text Generation
Transformers
Safetensors
PyTorch
English
pebble_50m
pebble
base-model
mamba
mamba2
hybrid
custom-architecture
custom_code
Instructions to use basically-experimental/Pebble-50M-beta with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use basically-experimental/Pebble-50M-beta with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="basically-experimental/Pebble-50M-beta", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("basically-experimental/Pebble-50M-beta", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use basically-experimental/Pebble-50M-beta with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "basically-experimental/Pebble-50M-beta" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "basically-experimental/Pebble-50M-beta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/basically-experimental/Pebble-50M-beta
- SGLang
How to use basically-experimental/Pebble-50M-beta 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 "basically-experimental/Pebble-50M-beta" \ --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": "basically-experimental/Pebble-50M-beta", "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 "basically-experimental/Pebble-50M-beta" \ --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": "basically-experimental/Pebble-50M-beta", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use basically-experimental/Pebble-50M-beta with Docker Model Runner:
docker model run hf.co/basically-experimental/Pebble-50M-beta
SFT step 50
Browse files- config.json +16 -16
- model.safetensors +2 -2
- special_tokens_map.json +1 -1
- tokenizer_config.json +19 -8
config.json
CHANGED
|
@@ -2,31 +2,31 @@
|
|
| 2 |
"architectures": [
|
| 3 |
"PebbleForCausalLM"
|
| 4 |
],
|
| 5 |
-
"
|
|
|
|
|
|
|
|
|
|
| 6 |
"auto_map": {
|
| 7 |
"AutoConfig": "configuration_pebble.PebbleConfig",
|
| 8 |
"AutoModelForCausalLM": "modeling_pebble.PebbleForCausalLM"
|
| 9 |
},
|
| 10 |
-
"vocab_size": 16384,
|
| 11 |
-
"hidden_size": 768,
|
| 12 |
-
"intermediate_size": 3072,
|
| 13 |
-
"num_hidden_layers": 8,
|
| 14 |
-
"num_attention_heads": 12,
|
| 15 |
"block_pattern": "mmma|mmma",
|
|
|
|
|
|
|
| 16 |
"hybrid_ratio": "3:1 mamba2:attention",
|
| 17 |
-
"
|
| 18 |
-
"rms_norm_eps": 1e-06,
|
| 19 |
-
"tie_word_embeddings": true,
|
| 20 |
"mamba2": {
|
| 21 |
-
"d_state": 128,
|
| 22 |
"d_conv": 4,
|
|
|
|
| 23 |
"expand": 2,
|
| 24 |
"headdim": 64,
|
| 25 |
"use_mem_eff_path": true
|
| 26 |
},
|
| 27 |
-
"
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
"
|
| 32 |
-
|
|
|
|
|
|
|
|
|
| 2 |
"architectures": [
|
| 3 |
"PebbleForCausalLM"
|
| 4 |
],
|
| 5 |
+
"attention": {
|
| 6 |
+
"is_causal": true,
|
| 7 |
+
"rope_theta": 10000.0
|
| 8 |
+
},
|
| 9 |
"auto_map": {
|
| 10 |
"AutoConfig": "configuration_pebble.PebbleConfig",
|
| 11 |
"AutoModelForCausalLM": "modeling_pebble.PebbleForCausalLM"
|
| 12 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
"block_pattern": "mmma|mmma",
|
| 14 |
+
"dtype": "bfloat16",
|
| 15 |
+
"hidden_size": 768,
|
| 16 |
"hybrid_ratio": "3:1 mamba2:attention",
|
| 17 |
+
"intermediate_size": 3072,
|
|
|
|
|
|
|
| 18 |
"mamba2": {
|
|
|
|
| 19 |
"d_conv": 4,
|
| 20 |
+
"d_state": 128,
|
| 21 |
"expand": 2,
|
| 22 |
"headdim": 64,
|
| 23 |
"use_mem_eff_path": true
|
| 24 |
},
|
| 25 |
+
"max_position_embeddings": 16384,
|
| 26 |
+
"model_type": "pebble_50m",
|
| 27 |
+
"num_attention_heads": 12,
|
| 28 |
+
"num_hidden_layers": 8,
|
| 29 |
+
"rms_norm_eps": 1e-06,
|
| 30 |
+
"transformers_version": "4.57.1",
|
| 31 |
+
"vocab_size": 16384
|
| 32 |
+
}
|
model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f0f2ad1c51c9f4401748fba5f2d91906fe06095a1e5d91b14173873b064b150
|
| 3 |
+
size 98675424
|
special_tokens_map.json
CHANGED
|
@@ -13,4 +13,4 @@
|
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
}
|
| 16 |
-
}
|
|
|
|
| 13 |
"rstrip": false,
|
| 14 |
"single_word": false
|
| 15 |
}
|
| 16 |
+
}
|
tokenizer_config.json
CHANGED
|
@@ -1,16 +1,27 @@
|
|
| 1 |
{
|
| 2 |
-
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 3 |
-
"bos_token": "<|eos|>",
|
| 4 |
-
"eos_token": "<|eos|>",
|
| 5 |
-
"pad_token": null,
|
| 6 |
-
"unk_token": null,
|
| 7 |
"add_bos_token": false,
|
| 8 |
"add_eos_token": false,
|
| 9 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
"model_input_names": [
|
| 11 |
"input_ids"
|
| 12 |
],
|
| 13 |
-
"
|
| 14 |
-
"
|
|
|
|
|
|
|
| 15 |
"vocab_size": 16384
|
| 16 |
}
|
|
|
|
| 1 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
"add_bos_token": false,
|
| 3 |
"add_eos_token": false,
|
| 4 |
+
"added_tokens_decoder": {
|
| 5 |
+
"0": {
|
| 6 |
+
"content": "<|eos|>",
|
| 7 |
+
"lstrip": false,
|
| 8 |
+
"normalized": false,
|
| 9 |
+
"rstrip": false,
|
| 10 |
+
"single_word": false,
|
| 11 |
+
"special": true
|
| 12 |
+
}
|
| 13 |
+
},
|
| 14 |
+
"bos_token": "<|eos|>",
|
| 15 |
+
"clean_up_tokenization_spaces": false,
|
| 16 |
+
"eos_token": "<|eos|>",
|
| 17 |
+
"eos_token_id": 0,
|
| 18 |
+
"extra_special_tokens": {},
|
| 19 |
"model_input_names": [
|
| 20 |
"input_ids"
|
| 21 |
],
|
| 22 |
+
"model_max_length": 16384,
|
| 23 |
+
"pad_token": null,
|
| 24 |
+
"tokenizer_class": "PreTrainedTokenizerFast",
|
| 25 |
+
"unk_token": null,
|
| 26 |
"vocab_size": 16384
|
| 27 |
}
|