Text Generation
Transformers
Safetensors
English
llama
thinking
reasoning
instruct
economics
finance
analysis
llama3.3
unsloth
finetune
bfloat16
128k context
conversational
text-generation-inference
Instructions to use Gaston895/aegisconduct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Gaston895/aegisconduct with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Gaston895/aegisconduct") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Gaston895/aegisconduct") model = AutoModelForCausalLM.from_pretrained("Gaston895/aegisconduct", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Gaston895/aegisconduct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Gaston895/aegisconduct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Gaston895/aegisconduct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Gaston895/aegisconduct
- SGLang
How to use Gaston895/aegisconduct 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 "Gaston895/aegisconduct" \ --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": "Gaston895/aegisconduct", "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 "Gaston895/aegisconduct" \ --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": "Gaston895/aegisconduct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Unsloth Desktop
- Docker Model Runner
How to use Gaston895/aegisconduct with Docker Model Runner:
docker model run hf.co/Gaston895/aegisconduct
Update README with current repository structure
Browse files
README.md
CHANGED
|
@@ -44,35 +44,44 @@ This repository contains the Llama 3.3 8B Instruct model with thinking capabilit
|
|
| 44 |
|
| 45 |
## Repository Structure
|
| 46 |
|
| 47 |
-
|
| 48 |
|
| 49 |
```
|
| 50 |
βββ config.json # Model configuration
|
| 51 |
βββ generation_config.json # Generation parameters
|
| 52 |
-
βββ tokenizer.json # Tokenizer vocabulary
|
| 53 |
βββ tokenizer_config.json # Tokenizer configuration
|
| 54 |
βββ special_tokens_map.json # Special tokens mapping
|
| 55 |
-
βββ
|
| 56 |
βββ model.safetensors.index.json # Model index
|
| 57 |
-
βββ
|
| 58 |
-
βββ model-00002-of-00004.safetensors # Model weights (part 2)
|
| 59 |
-
βββ model-00003-of-00004.safetensors # Model weights (part 3)
|
| 60 |
-
βββ model-00004-of-00004.safetensors # Model weights (part 4)
|
| 61 |
βββ matrix-neo-reloaded-fight.gif # Visual asset
|
| 62 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
```
|
| 64 |
|
| 65 |
## Usage
|
| 66 |
|
| 67 |
-
###
|
| 68 |
|
| 69 |
```python
|
| 70 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 71 |
|
| 72 |
-
#
|
| 73 |
tokenizer = AutoTokenizer.from_pretrained("Gaston895/aegisconduct")
|
| 74 |
-
model = AutoModelForCausalLM.from_pretrained("Gaston895/aegisconduct")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 75 |
|
|
|
|
| 76 |
# Generate response
|
| 77 |
inputs = tokenizer("Analyze the economic impact of inflation on consumer spending:", return_tensors="pt")
|
| 78 |
outputs = model.generate(**inputs, max_length=512, temperature=0.7)
|
|
@@ -82,7 +91,7 @@ print(response)
|
|
| 82 |
|
| 83 |
### Thinking Mode Activation
|
| 84 |
|
| 85 |
-
The model automatically activates thinking mode for complex reasoning
|
| 86 |
|
| 87 |
```python
|
| 88 |
# These prompts will trigger thinking mode
|
|
@@ -113,17 +122,14 @@ This model excels at:
|
|
| 113 |
- **Global Economics**: International trade, currency analysis
|
| 114 |
- **Research**: Academic-level economic reasoning and explanation
|
| 115 |
|
| 116 |
-
## Example Outputs
|
| 117 |
-
|
| 118 |
-
The model provides detailed, step-by-step reasoning for complex economic questions, often showing its "thinking" process before delivering final answers.
|
| 119 |
-
|
| 120 |
## Technical Notes
|
| 121 |
|
| 122 |
-
-
|
|
|
|
|
|
|
| 123 |
- Supports both instruct and thinking modes
|
| 124 |
- No system prompt required (thinking tags self-generate)
|
| 125 |
- Compatible with quantization (Q4KS, IQ3_M recommended minimum)
|
| 126 |
-
- Optimized for inference with various backends (transformers, llama.cpp, etc.)
|
| 127 |
|
| 128 |
## License
|
| 129 |
|
|
|
|
| 44 |
|
| 45 |
## Repository Structure
|
| 46 |
|
| 47 |
+
Configuration files are in the root directory, with model weights in the econ subdirectory:
|
| 48 |
|
| 49 |
```
|
| 50 |
βββ config.json # Model configuration
|
| 51 |
βββ generation_config.json # Generation parameters
|
|
|
|
| 52 |
βββ tokenizer_config.json # Tokenizer configuration
|
| 53 |
βββ special_tokens_map.json # Special tokens mapping
|
| 54 |
+
βββ tokenizer.json # Tokenizer vocabulary
|
| 55 |
βββ model.safetensors.index.json # Model index
|
| 56 |
+
βββ chat_template.jinja # Chat template
|
|
|
|
|
|
|
|
|
|
| 57 |
βββ matrix-neo-reloaded-fight.gif # Visual asset
|
| 58 |
+
βββ README.md # This file
|
| 59 |
+
βββ econ/
|
| 60 |
+
βββ model-00001-of-00004.safetensors # Model weights (part 1)
|
| 61 |
+
βββ model-00002-of-00004.safetensors # Model weights (part 2)
|
| 62 |
+
βββ model-00003-of-00004.safetensors # Model weights (part 3)
|
| 63 |
+
βββ model-00004-of-00004.safetensors # Model weights (part 4)
|
| 64 |
```
|
| 65 |
|
| 66 |
## Usage
|
| 67 |
|
| 68 |
+
### Loading the Model
|
| 69 |
|
| 70 |
```python
|
| 71 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 72 |
|
| 73 |
+
# Method 1: Load with subfolder for model weights
|
| 74 |
tokenizer = AutoTokenizer.from_pretrained("Gaston895/aegisconduct")
|
| 75 |
+
model = AutoModelForCausalLM.from_pretrained("Gaston895/aegisconduct", subfolder="econ")
|
| 76 |
+
|
| 77 |
+
# Method 2: If all files are at root (after full migration)
|
| 78 |
+
# tokenizer = AutoTokenizer.from_pretrained("Gaston895/aegisconduct")
|
| 79 |
+
# model = AutoModelForCausalLM.from_pretrained("Gaston895/aegisconduct")
|
| 80 |
+
```
|
| 81 |
+
|
| 82 |
+
### Generate Response
|
| 83 |
|
| 84 |
+
```python
|
| 85 |
# Generate response
|
| 86 |
inputs = tokenizer("Analyze the economic impact of inflation on consumer spending:", return_tensors="pt")
|
| 87 |
outputs = model.generate(**inputs, max_length=512, temperature=0.7)
|
|
|
|
| 91 |
|
| 92 |
### Thinking Mode Activation
|
| 93 |
|
| 94 |
+
The model automatically activates thinking mode for complex reasoning:
|
| 95 |
|
| 96 |
```python
|
| 97 |
# These prompts will trigger thinking mode
|
|
|
|
| 122 |
- **Global Economics**: International trade, currency analysis
|
| 123 |
- **Research**: Academic-level economic reasoning and explanation
|
| 124 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 125 |
## Technical Notes
|
| 126 |
|
| 127 |
+
- Configuration files are at root level for easy access
|
| 128 |
+
- Model weights are in the `econ/` subdirectory
|
| 129 |
+
- Use `subfolder="econ"` when loading model weights
|
| 130 |
- Supports both instruct and thinking modes
|
| 131 |
- No system prompt required (thinking tags self-generate)
|
| 132 |
- Compatible with quantization (Q4KS, IQ3_M recommended minimum)
|
|
|
|
| 133 |
|
| 134 |
## License
|
| 135 |
|