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
## Create directories to mount | |
# mkdir ollama | |
# mdkir webui | |
## Run docker compose | |
# docker compose up -d | |
## Download models (Run once. It will store model in 'ollama' dir) | |
# docker exec -it ollama ollama pull deepseek-r1:8b | |
## Other models are listed at the end of the file | |
## Open web page (webui might take up to a few minutes to start first time) | |
# http://localhost:3000 |
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
#pragma once | |
template <unsigned int TPrecision> | |
class fnumber32 | |
{ | |
static_assert(TPrecision > 0, "fnumber32 precision must be greater than zero"); | |
static_assert(TPrecision < 32, "fnumber32 precision must be less than 32"); | |
private: |
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
#pragma once | |
#include <cstddef> | |
#include <cstdint> | |
#include <type_traits> | |
#include <utility> | |
#include <vector> | |
#include <memory> | |
#include <algorithm> | |
#include <cmath> |
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
#pragma once | |
#include <cstddef> | |
#include <type_traits> | |
#include <tuple> | |
#include <string_view> | |
#include <span> | |
namespace rtti | |
{ |
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
#pragma once | |
#include <cstddef> | |
template <typename TRet, typename TVal> | |
TRet *poff(TVal *ptr, ptrdiff_t offset) | |
{ | |
return reinterpret_cast<TRet *>(reinterpret_cast<char *>(ptr) + offset); | |
} |
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
#pragma once | |
#ifdef _MSC_VER | |
#define _offsetof_(s, m) offsetof(s, m) | |
#else | |
namespace detail { | |
template<typename T> struct declval_helper { static T value; }; |
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
#pragma once | |
#include <vector> | |
template <typename T, size_t N> | |
struct allocator_with_buffer | |
{ | |
using value_type = T; | |
template <class U> | |
struct rebind { typedef allocator_with_buffer<U, N> other; }; |
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
#pragma once | |
#include <mutex> | |
#include <thread> | |
#include <new> | |
template <typename TObj, typename TMutex = std::mutex> | |
class MutexedGuard; |
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
#pragma once | |
#ifndef _FUNCTION_HPP_INCLUDED_ | |
#define _FUNCTION_HPP_INCLUDED_ | |
#include <type_traits> | |
namespace | |
{ |