![]() $ file target/x86_64-unknown-freebsd/debug/hello-world-pfsense : MADV_DONTNEED does not work (memset will be used instead ) : (This is the expected behaviour if you are running under QEMU ) Finished dev target(s) in 12.93s WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requestedĬompiling hello-world-pfsense v0.1.0 (/project) $ cross build -target x86_64-unknown-freebsd However, after installing cross, things seemed to actually work, which is a ![]() Machine when it expects AMD64, but I thought it was worth a shot. I’m not a big fan of docker,Įspecially since I often end up with a bunch of warnings about being on ARM64 (so you’ll need a working docker installation). Next I resorted to trying cross, which uses docker to get the job done opt/homebrew/Cellar/zig/0.10.0/lib/zig/include/inttypes.h:21:15: fatal error: 'inttypes.h' file not foundĮrror: could not compile `hello-world-pfsense` due to previous error opt/homebrew/Cellar/zig/0.10.0/lib/zig/include/inttypes.h:21:15'inttypes.h' file not found:: fatal error: 'inttypes.h' file not found opt/homebrew/Cellar/zig/0.10.0/lib/zig/include/inttypes.h:21:15/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libunwind/src/config.h: fatal error: 21: $ cargo build -target x86_64-unknown-freebsdĬompiling hello-world-pfsense v0.1.0 (/Users/n8henrie/git/hello-world-pfsense)Įrror: linking with `/Users/n8henrie/.local/bin/zcc-x86_64-freebsd-gnu` failed: exit status: 1 Linker = "/Users/n8henrie/.local/bin/zcc-x86_64-freebsd-gnu" A new release of pip is available: 23.0 -> 23.0.1 Successfully installed regex-2023.3.23 tiktoken-0.3.3 Installing collected packages: regex, tiktoken Requirement already satisfied: charset-normalizer=2 in /usr/local/lib/python3.10/site-packages (from requests>=2.26.0->tiktoken) (3.1.0) Requirement already satisfied: urllib3=1.21.1 in /usr/local/lib/python3.10/site-packages (from requests>=2.26.0->tiktoken) (1.26.15) Requirement already satisfied: idna=2.5 in /usr/local/lib/python3.10/site-packages (from requests>=2.26.0->tiktoken) (3.4) Tiktoken Example: MacStudio$ python3 tik.py "Hello World"Įncoding = tiktoken.encoding_for_model("gpt-3.5-turbo") Total Number of Cores: 10 (8 performance and 2 efficiency) Time since boot: 1 day, 15 hours, 8 minutes Here is my M1 system information and a Tiktoken example, hope it helps you Mac M1 Info: MacStudio$ system_profiler SPSoftwareDataType SPHardwareDataType I have issues with tiktoken on Mac arm64 processor. The tokeniser API is documented in `tiktoken/core.py`. The open source version of `tiktoken` can be installed from PyPI: # To get the tokeniser corresponding to a specific model in the OpenAI API:Įnc = tiktoken.encoding_for_model("text-davinci-003") Tiktoken is a fast () tokeniser for use withĪssert enc.decode(enc.encode("hello world")) = "hello world" See Also: openai/tiktoken/blob/main/README.md # ⏳ tiktoken Tiktoken is a Python app and requires a properly (standard) installed Python3. Tiktoken does not require Rust, at least on my Mac (or to my knowledge).Īnd found that it may be required, per GitHub… (see Appendix in next post) Could be mistaken but I recall this being an issue with not having Rust installed.Įdit: I double checked my initial reactions, knowing posts good information:
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |