sequenceDiagram
participant User
participant LND_A as LND Node A
participant LND_B as LND Node B
%% Initialization Phase
User->>LND_A: UpdateChannelParams RPC
LND_A->>LND_A: Status: Initialized
LND_A->>LND_A: Validate parameters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| The most atomic way to train and run inference for a GPT in pure, dependency-free Python. | |
| This file is the complete algorithm. | |
| Everything else is just efficiency. | |
| @karpathy | |
| """ | |
| import os # os.path.exists | |
| import math # math.log, math.exp |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"instruction":"What is the next step in making this?","response":"1. Prepare all ingredients\n2. Heat pan on medium-high heat\n3. Add oil\n4. Cook protein first until done\n5. Remove protein and set aside\n6. Add vegetables in order of cook time\n7. Return protein to pan\n8. Add sauce\n9. Toss until sauce thickens\n10. Serve immediately over rice","reasoning":"All prep must be done before heating pan. Pan must be very hot before adding oil. Protein cooked separately to avoid steaming. Vegetables added by cook time ensures even cooking.","rule_id":"RULE_PRECONDITIONS","task_domain":"cooking","reasoning_source":"EleutherAI\/gpt-neox-20b"} | |
| {"instruction":"How do I make fruit salad?","response":"1. Wash and cut fruit\n2. Combine all ingredients in a bowl\n3. Toss until fruit is evenly coated\n4. Serve immediately","reasoning":"All prep must be done before combining. Fruit must be washed and cut before adding to bowl. Tossing ensures even coating.","rule_id":"RULE_PRECONDITIONS","task_domain":"cooking","reasoning |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # LND Benchmark Script with Linux Namespaces and Temporary Storage | |
| # Runs LND in isolated network, PID, and mount namespaces with ephemeral tmpfs storage | |
| # Configuration | |
| VERSION="${1:-$(git describe --tags --always --dirty 2>/dev/null || echo 'unknown')}" | |
| ALIAS="${2:-default}" | |
| LND_BIN="$(pwd)/lnd-debug-${VERSION}" | |
| LNCLI_BIN="$(pwd)/lncli-debug-${VERSION}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Copyright (c) 2025 The btcsuite developers | |
| // Use of this source code is governed by an ISC | |
| // license that can be found in the LICENSE file. | |
| package wallet | |
| import ( | |
| "fmt" | |
| "testing" | |
| "time" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "ID": "cc885c6f-bb0a-4b46-8960-cff38aa91c88", | |
| "Containers": 0, | |
| "ContainersRunning": 0, | |
| "ContainersPaused": 0, | |
| "ContainersStopped": 0, | |
| "Images": 0, | |
| "Driver": "overlayfs", | |
| "DriverStatus": [ | |
| [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This is a common issue when building `grpcio-tools` on ARM64/aarch64 architecture. The compilation is failing during the C++ extension build process. Here are several solutions to try: | |
| ## Solution 1: Use Pre-compiled Wheels | |
| First, try updating pip and using pre-compiled wheels instead of building from source: | |
| ```dockerfile | |
| # Update your Dockerfile line 65 to: | |
| RUN pip3 install --upgrade pip setuptools wheel && \ | |
| pip3 install --only-binary=grpcio,grpcio-tools grpcio-tools mypy-protobuf | |
| ``` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Test cases | |
| commands=( | |
| "./run_pytest.sh test_suite 'tests/unit' ''" | |
| "./run_pytest.sh test_suite 'tests/unit' '--maxfail=3 -m slow -n 4'" | |
| "./run_pytest.sh test_suite 'tests/integration' '--maxfail=3 -m \"slow or flaky\" -n 4'" | |
| "./run_pytest.sh test_suite 'tests/unit' '--maxfail=3 -m 'slow or flaky and not unreliable' -n 4'" | |
| "./run_pytest.sh test_suite 'tests/unit' '--maxfail=3 -m slow -k test_function -n 4'" | |
| "./run_pytest.sh test_suite '' '--maxfail=3 -m nonexistent_marker'" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| dev@dev:~/side-header-loading-ab-testing-experiments/neutrino_playground$ ./script.sh | |
| --- Benchmarking with memory limit: 16MB (16777216 bytes) --- | |
| 16777216 | |
| 0 | |
| ./script.sh: line 11: 6017 Killed timeout 300s sudo cgexec -g memory:neutrino_headers_import_mem_limiter /usr/local/go/bin/go run main.go 2> /dev/null | |
| App Exit Code: 137 | |
| Total Time: .149283609 seconds | |
| Peak Memory Usage (from events.local:max): 1408 bytes | |
| OOM Events: 72 | |
| OOM Kills: 2 |
NewerOlder