Text Generation
Transformers
Safetensors
English
argonne2
feature-extraction
causal-lm
transformer
argonne
pretrained
base-model
long-context
conversational
custom_code
Instructions to use PursuitOfDataScience/argonne-4.0-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PursuitOfDataScience/argonne-4.0-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="PursuitOfDataScience/argonne-4.0-base", trust_remote_code=True) messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("PursuitOfDataScience/argonne-4.0-base", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use PursuitOfDataScience/argonne-4.0-base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "PursuitOfDataScience/argonne-4.0-base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "PursuitOfDataScience/argonne-4.0-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/PursuitOfDataScience/argonne-4.0-base
- SGLang
How to use PursuitOfDataScience/argonne-4.0-base 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 "PursuitOfDataScience/argonne-4.0-base" \ --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": "PursuitOfDataScience/argonne-4.0-base", "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 "PursuitOfDataScience/argonne-4.0-base" \ --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": "PursuitOfDataScience/argonne-4.0-base", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use PursuitOfDataScience/argonne-4.0-base with Docker Model Runner:
docker model run hf.co/PursuitOfDataScience/argonne-4.0-base
Argonne 4.0-base: 1.04B, 65.12B tokens, trained 65,536-token context (step 112,674)
93f0a16 verified | { | |
| "_keep_in_fp32_modules": [], | |
| "architectures": [ | |
| "ArgonneModel" | |
| ], | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "block_size": 65536, | |
| "bos_token_id": null, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 151643, | |
| "hidden_dropout": 0.0, | |
| "hidden_size": 1536, | |
| "interleaved_local_attention": false, | |
| "intermediate_size": 4096, | |
| "local_attention_window": null, | |
| "logit_softcap": 15.0, | |
| "loss_chunk_size": 0, | |
| "max_position_embeddings": 65536, | |
| "mlp_bias": false, | |
| "model_type": "argonne2", | |
| "mtp_horizon": 1, | |
| "mtp_loss_weight": 0.0, | |
| "n_embd": 1536, | |
| "n_head": 6, | |
| "n_layer": 32, | |
| "num_attention_heads": 6, | |
| "num_hidden_layers": 32, | |
| "num_key_value_heads": 2, | |
| "pad_token_id": null, | |
| "qk_norm": true, | |
| "rms_norm_eps": 1e-06, | |
| "rope_theta": 1000000.0, | |
| "sandwich_norm": true, | |
| "sliding_window": null, | |
| "tie_word_embeddings": true, | |
| "transformers_version": "5.6.2", | |
| "use_flash_attention": true, | |
| "use_gradient_checkpointing": false, | |
| "v_norm": true, | |
| "vocab_size": 151669, | |
| "z_loss_weight": 0.0, | |
| "torch_dtype": "bfloat16", | |
| "auto_map": { | |
| "AutoConfig": "model.ArgonneConfig", | |
| "AutoModel": "model.ArgonneModel", | |
| "AutoModelForCausalLM": "model.ArgonneModel" | |
| }, | |
| "use_cache": true | |
| } | |