Text Generation
Transformers
Safetensors
PyTorch
English
perceiver_ar
mrcogito
meridian21
custom_code
concept-memory
size-140m
budget-11.5bt
long-context
base-model
research
e38
conversational
Eval Results (legacy)
Instructions to use Meridian21Lab/concept-memory-140m-11.5bt with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Meridian21Lab/concept-memory-140m-11.5bt with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Meridian21Lab/concept-memory-140m-11.5bt", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("Meridian21Lab/concept-memory-140m-11.5bt", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Meridian21Lab/concept-memory-140m-11.5bt with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Meridian21Lab/concept-memory-140m-11.5bt" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Meridian21Lab/concept-memory-140m-11.5bt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Meridian21Lab/concept-memory-140m-11.5bt
- SGLang
How to use Meridian21Lab/concept-memory-140m-11.5bt 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 "Meridian21Lab/concept-memory-140m-11.5bt" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Meridian21Lab/concept-memory-140m-11.5bt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'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 "Meridian21Lab/concept-memory-140m-11.5bt" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Meridian21Lab/concept-memory-140m-11.5bt", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Meridian21Lab/concept-memory-140m-11.5bt with Docker Model Runner:
docker model run hf.co/Meridian21Lab/concept-memory-140m-11.5bt
Download config.json from Meridian21Lab/concept-memory-140m-11.5bt: direct link, hf CLI and curl.
- Browser
- Download file 4.81 kB
-
https://huggingface.co/Meridian21Lab/concept-memory-140m-11.5bt/resolve/main/config.json
- Command line
-
hf download hf://Meridian21Lab/concept-memory-140m-11.5bt/config.json
-
curl -L -o config.json https://huggingface.co/Meridian21Lab/concept-memory-140m-11.5bt/resolve/main/config.json
4.81 kB
| { | |
| "architectures": [ | |
| "PerceiverARForCausalLM" | |
| ], | |
| "attn_backend": "sdpa", | |
| "attn_pad_multiple": 1, | |
| "auto_map": { | |
| "AutoConfig": "configuration_perceiver_ar.PerceiverARConfig", | |
| "AutoModelForCausalLM": "modeling_perceiver_ar.PerceiverARForCausalLM" | |
| }, | |
| "block": 128, | |
| "block_attention_mode": "causal", | |
| "bos_token_id": 0, | |
| "checkpoint_family": "perceiver_ar", | |
| "chunked_ce_block_size": 2048, | |
| "concept_block": 512, | |
| "concept_iters": 3, | |
| "concept_num": 0, | |
| "concept_per_block": 64, | |
| "concept_reasoner_dim": 512, | |
| "concept_reasoner_heads": 8, | |
| "concept_reasoner_layers": 0, | |
| "concept_reasoner_loops": 2, | |
| "concept_sinks": 4, | |
| "concept_sum_len": 16384, | |
| "concept_summaries": true, | |
| "concept_tau": 0.05, | |
| "concept_top_k": 512, | |
| "concept_variance": true, | |
| "concept_width": 128, | |
| "dtype": "float32", | |
| "eos_token_id": 0, | |
| "global_layers": 1, | |
| "global_logit_scale": "none", | |
| "global_nope": true, | |
| "global_positions": null, | |
| "global_scale_ref": 8192, | |
| "head_dim": 64, | |
| "hidden_act": "silu", | |
| "hidden_size": 896, | |
| "init_std": 0.02, | |
| "intermediate_size": 2816, | |
| "lm_addr": "window_start", | |
| "lm_competition": true, | |
| "lm_context": "page_bidir", | |
| "lm_count_aux": 0.0, | |
| "lm_count_heads": 0, | |
| "lm_count_max": 10, | |
| "lm_enc_layers": 2, | |
| "lm_filing": "argmax", | |
| "lm_filing_cap": 16, | |
| "lm_filing_iters": 3, | |
| "lm_head_tied": true, | |
| "lm_heads": 8, | |
| "lm_index_loss": 0.0, | |
| "lm_index_negatives": 32, | |
| "lm_index_queries": 256, | |
| "lm_key_grad": "full", | |
| "lm_latent_dim": 512, | |
| "lm_latents": 32, | |
| "lm_note_age": "none", | |
| "lm_note_age_init": "", | |
| "lm_note_age_learn": true, | |
| "lm_note_age_unit": 0, | |
| "lm_note_key": "writer", | |
| "lm_note_order_gate": false, | |
| "lm_note_rank_gate": "own", | |
| "lm_note_rank_margin": 1.0, | |
| "lm_note_rank_sharp": 2.0, | |
| "lm_note_read": "gist", | |
| "lm_null_latent": false, | |
| "lm_open": "none", | |
| "lm_open_cap": 512, | |
| "lm_open_k": 0, | |
| "lm_open_levels": 1, | |
| "lm_open_new_per_pass": false, | |
| "lm_open_pages": 16, | |
| "lm_open_score": "sum_softmax", | |
| "lm_pos_prior": true, | |
| "lm_read": "exclusive", | |
| "lm_read_topk": 0, | |
| "lm_readback_aux": 0.0, | |
| "lm_reader_tokens": 5, | |
| "lm_rounds": 2, | |
| "lm_sinks": 0, | |
| "lm_slot_pos": "read", | |
| "lm_stride": 192, | |
| "lm_window": 256, | |
| "lm_writer_dim": 256, | |
| "lm_writer_input": "table", | |
| "logit_softcap": 30.0, | |
| "lsa_block": 512, | |
| "lsa_bucket": 8, | |
| "lsa_bucket_cap": 16, | |
| "lsa_pool": 4, | |
| "lsa_sinks": 4, | |
| "lsa_top_k": 512, | |
| "lsa_width": 128, | |
| "lsa_window": 512, | |
| "max_sequence_length": 65536, | |
| "message_anchor_key_len": 0, | |
| "message_anchor_token_ids": [], | |
| "message_anchor_window": 4, | |
| "message_boundary_token_id": -1, | |
| "message_compress_ratio": 16, | |
| "message_extra_slot_attends": 0, | |
| "message_global_anchors": "none", | |
| "message_identity_slots": false, | |
| "message_inplace_raw_kv": false, | |
| "message_keep_local_swa": false, | |
| "message_loop_control": "none", | |
| "message_loop_control_dim": 128, | |
| "message_loop_control_heads": 4, | |
| "message_loop_control_window": 48, | |
| "message_loop_control_words": "embed", | |
| "message_loop_exit_aux": 0.0, | |
| "message_loop_exit_mask": "all", | |
| "message_loop_exit_targets": "progress", | |
| "message_loop_feedback": "none", | |
| "message_loop_feedback_temp": 1.0, | |
| "message_loop_inject": "none", | |
| "message_loop_name_aux": 0.0, | |
| "message_loop_name_len": 0, | |
| "message_loop_name_lens": 0.0, | |
| "message_loop_read_aux": 0.0, | |
| "message_loop_read_target": "page", | |
| "message_loop_rounds": 4, | |
| "message_loop_span": 1, | |
| "message_override": "real", | |
| "message_pack_stride": 0, | |
| "message_pool_remainder": false, | |
| "message_prefix_ae": false, | |
| "message_prefix_ae_stopgrad_answer": true, | |
| "message_prefix_ae_weight": 0.0, | |
| "message_raw_window": 0, | |
| "message_read_rounds": 1, | |
| "message_round_aux": 0.0, | |
| "message_slots_inplace": false, | |
| "message_update_slot_kv": false, | |
| "message_write": "block_mean", | |
| "model_type": "perceiver_ar", | |
| "ngram_buckets": 131072, | |
| "ngram_orders": [], | |
| "nope_every": 4, | |
| "norm_type": "rmsnorm", | |
| "num_attention_heads": 14, | |
| "num_hidden_layers": 13, | |
| "num_kv_heads": 1, | |
| "pad_token_id": 0, | |
| "par_global_read": "concept", | |
| "par_mode": "perceiver", | |
| "pre_layers": 3, | |
| "pre_window": 128, | |
| "pretraining_objective": "causal_lm", | |
| "rope_theta": 500000.0, | |
| "slot_pos_ref": 2048, | |
| "stack_layers": 9, | |
| "swa_sink": false, | |
| "swp_auto_fit": true, | |
| "swp_bank_size": 32, | |
| "swp_coverage": 8, | |
| "swp_n_heads": 0, | |
| "swp_query_dim": 0, | |
| "swp_slot_pos": "page", | |
| "swp_stride": 0, | |
| "swp_window": 0, | |
| "tie_word_embeddings": false, | |
| "token_embedding_dim": 384, | |
| "tokenizer_name": "HuggingFaceTB/SmolLM2-135M", | |
| "transformers_version": "4.57.6", | |
| "use_liger": false, | |
| "value_embed_dim": 64, | |
| "value_embed_layers": [], | |
| "vocab_size": 49152, | |
| "write_back_hook": false, | |
| "z_loss": 0.0001, | |
| "zero_init_residuals": true | |
| } | |