Skip to content

Instantly share code, notes, and snippets.

@se4u
se4u / gist:507270f0e587e9a430c19f351dcd6ce3
Created January 29, 2025 11:10 — forked from ykk648/gist:cf7bf2b64897c29cfb0c67003bbbbea3
GPT-4 Architecture, Infrastructure, Training Dataset, Costs, Vision, MoE
2023/7/11 08:59
GPT-4 Architecture, Infrastructure, Training Dataset, Costs, Vision, MoE
GPT-4 Architecture, Infrastructure,
Training Dataset, Costs, Vision, MoE
Demystifying GPT-4: The engineering tradeoffs that led OpenAI to their
architecture.
DYLAN PATEL AND GERALD WONG
2023 年 7 月 11 日 ∙ PAID
38
8
@se4u
se4u / bluetooth_kivy.py
Created January 12, 2020 00:44 — forked from cuibonobo/bluetooth_kivy.py
Bluetooth example with Kivy. A more fleshed-out example here: https://github.com/tito/android-demo. A more modern way of doing it: https://github.com/kivy/plyer. And this guy used Kivy to connect to an Arduino: https://github.com/brean/arduino-kivy-bluetooth. Native Kivy code (?): https://groups.google.com/d/msg/kivy-users/n_cMbFzf_1A/5edKgQgycx0J
# Same as before, with a kivy-based UI
'''
Bluetooth/Pyjnius example
=========================
This was used to send some bytes to an arduino via bluetooth.
The app must have BLUETOOTH and BLUETOOTH_ADMIN permissions (well, i didn't
tested without BLUETOOTH_ADMIN, maybe it works.)
@se4u
se4u / rank_metrics.py
Created February 22, 2016 05:31 — forked from bwhite/rank_metrics.py
Ranking Metrics
"""Information Retrieval metrics
Useful Resources:
http://www.cs.utexas.edu/~mooney/ir-course/slides/Evaluation.ppt
http://www.nii.ac.jp/TechReports/05-014E.pdf
http://www.stanford.edu/class/cs276/handouts/EvaluationNew-handout-6-per.pdf
http://hal.archives-ouvertes.fr/docs/00/72/67/60/PDF/07-busa-fekete.pdf
Learning to Rank for Information Retrieval (Tie-Yan Liu)
"""
import numpy as np