All of the following information is based on go version go1.17.1 darwin/amd64.
| GOOS | Out of the Box |
|---|---|
aix |
✅ |
android |
✅ |
| from typing import Dict, Union | |
| from huggingface_hub import get_safetensors_metadata | |
| import argparse | |
| import sys | |
| # Example: | |
| # python get_gpu_memory.py Qwen/Qwen2.5-7B-Instruct | |
| # Dictionary mapping dtype strings to their byte sizes | |
| bytes_per_dtype: Dict[str, float] = { |
| /* This code snippet is a part of the blog at | |
| https://github.com/animeshtrivedi/blog/blob/master/post/2017-12-26-arrow.md | |
| */ | |
| import com.google.common.collect.ImmutableList; | |
| import org.apache.arrow.memory.RootAllocator; | |
| import org.apache.arrow.vector.*; | |
| import org.apache.arrow.vector.dictionary.DictionaryProvider; | |
| import org.apache.arrow.vector.types.FloatingPointPrecision; | |
| import org.apache.arrow.vector.types.pojo.ArrowType; |
| bindsym $mod+Shift+m move scratchpad | |
| bindsym $mod+Tab scratchpad show | |
| bindsym $mod+m exec i3-input -F 'mark %s' -P 'Mark: ' | |
| bindsym $mod+j exec i3-input -F '[con_mark="%s"] focus' -P 'Jump: ' |
| # Copyright 2012 Erlware, LLC. All Rights Reserved. | |
| # | |
| # This file is provided to you under the Apache License, | |
| # Version 2.0 (the "License"); you may not use this file | |
| # except in compliance with the License. You may obtain | |
| # a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, |