- Clone ollama
git clone --recursive https://github.com/ollama/ollama.git
- go to directory
cd ollama
- Install dependencies
sudo pacman -S rocm-hip-sdk rocm-opencl-sdk clblast go
- Build ollama with env
AMDGPU_TARGET=gfx1030 ROCM_PATH=/opt/rocm CLBlast_DIR=/usr/lib/cmake/CLBlast go generate -tags rocm ./...
go build -tags rocm
- Now to run it
HSA_OVERRIDE_GFX_VERSION=10.3.0 ./ollama serve
This file contains 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
Sets the project name. | |
name: docker-reverse-proxy | |
# The Docker services. | |
services: | |
# The Caddy server container. | |
caddy: | |
# https://hub.docker.com/_/caddy | |
image: caddy:alpine | |
container_name: caddy_reverse_proxy |
This file contains 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
version: '3.9' | |
services: | |
app: | |
networks: | |
- proxynet | |
extra_hosts: | |
- "host.docker.internal:host-gateway" | |
build: | |
context: . |
This file contains 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
Show hidden characters
{ | |
"name": "Devcontainer app", | |
"dockerComposeFile": "./docker-compose.yml", | |
"service": "app", | |
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}", | |
// Configure tool-specific properties. | |
"customizations": { | |
"vscode": { | |
"extensions": [ |
This file contains 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
require 'json' | |
require 'csv' | |
puts "======= JSON Parser for Instagram =========" | |
puts "================== v1.0 ===================" | |
puts "============== Megumi Aliya ===============" | |
def parse_posts(account_name) | |
pages = Dir.glob("#{account_name.chomp}/#{account_name.chomp}_posts_page_*.json") | |
total_pages = pages.sort_by { |s| s.scan(/\d+/).first.to_i }.last.split("_").last.delete(".json").to_i |
This file contains 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
require 'json' | |
require 'net/http' | |
require 'uri' | |
require 'fileutils' | |
puts "============= Instagram Scraper =============" | |
puts "================== v1.0 ===================" | |
puts "============== Megumi Aliya ===============" | |
3.times do | |
puts "" |
This file contains 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
class TrackingService | |
def self.track(*args, &block) | |
new(*args, &block).execute | |
end | |
def initialize(no_resi, expedition_type) | |
@no_resi = no_resi | |
@expedition_type = expedition_type | |
end |